diff --git a/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go b/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go index 82e113f63ce..1018e434518 100644 --- a/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go +++ b/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go @@ -54,10 +54,10 @@ func NewWindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an operationalInsightsConnection object. This API is available in the following national cloud deployments. +// Delete delete a resourceConnection object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-1.0 func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -114,7 +114,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ResourceConnectionable), nil } -// ToDeleteRequestInformation delete an operationalInsightsConnection object. This API is available in the following national cloud deployments. +// ToDeleteRequestInformation delete a resourceConnection object. This API is available in the following national cloud deployments. func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go b/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go index 429c3c6a55e..faf0075ea73 100644 --- a/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go +++ b/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go @@ -95,10 +95,10 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable), nil } -// Patch update the properties of a contentApproval object. This API is available in the following national cloud deployments. +// Patch update the properties of a complianceChange object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-1.0 func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Patch(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderPatchRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return requestInfo, nil } -// ToPatchRequestInformation update the properties of a contentApproval object. This API is available in the following national cloud deployments. +// ToPatchRequestInformation update the properties of a complianceChange object. This API is available in the following national cloud deployments. func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/app/calls_item_participants_invite_request_builder.go b/app/calls_item_participants_invite_request_builder.go index 83dd98a3a31..c5b0d51d5f0 100644 --- a/app/calls_item_participants_invite_request_builder.go +++ b/app/calls_item_participants_invite_request_builder.go @@ -31,10 +31,10 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments. +// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -53,7 +53,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable), nil } -// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments. +// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is available in the following national cloud deployments. func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/communications/calls_item_participants_invite_request_builder.go b/communications/calls_item_participants_invite_request_builder.go index dc27b784e9a..6ac21df9e41 100644 --- a/communications/calls_item_participants_invite_request_builder.go +++ b/communications/calls_item_participants_invite_request_builder.go @@ -31,10 +31,10 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments. +// Post delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -53,7 +53,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InviteParticipantsOperationable), nil } -// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments. +// ToPostRequestInformation delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is available in the following national cloud deployments. func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/virtual_endpoint_front_line_service_plans_cloud_pc_front_line_service_plan_item_request_builder.go b/devicemanagement/virtual_endpoint_front_line_service_plans_cloud_pc_front_line_service_plan_item_request_builder.go index 8967898c1d2..64539c4939f 100644 --- a/devicemanagement/virtual_endpoint_front_line_service_plans_cloud_pc_front_line_service_plan_item_request_builder.go +++ b/devicemanagement/virtual_endpoint_front_line_service_plans_cloud_pc_front_line_service_plan_item_request_builder.go @@ -18,7 +18,7 @@ type VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequestB // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequestBuilderGetQueryParameters get frontLineServicePlans from deviceManagement +// VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequestBuilderGetQueryParameters get the properties and relationships of a cloudPcFrontLineServicePlan object. type VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,10 @@ func (m *VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequ } return nil } -// Get get frontLineServicePlans from deviceManagement +// Get get the properties and relationships of a cloudPcFrontLineServicePlan object. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcfrontlineserviceplan-get?view=graph-rest-1.0 func (m *VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcFrontLineServicePlanable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -120,7 +123,7 @@ func (m *VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequ } return requestInfo, nil } -// ToGetRequestInformation get frontLineServicePlans from deviceManagement +// ToGetRequestInformation get the properties and relationships of a cloudPcFrontLineServicePlan object. func (m *VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointFrontLineServicePlansCloudPcFrontLineServicePlanItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/virtual_endpoint_front_line_service_plans_request_builder.go b/devicemanagement/virtual_endpoint_front_line_service_plans_request_builder.go index e3ad3e0d3f7..53137cc60ae 100644 --- a/devicemanagement/virtual_endpoint_front_line_service_plans_request_builder.go +++ b/devicemanagement/virtual_endpoint_front_line_service_plans_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEndpointFrontLineServicePlansRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEndpointFrontLineServicePlansRequestBuilderGetQueryParameters get frontLineServicePlans from deviceManagement +// VirtualEndpointFrontLineServicePlansRequestBuilderGetQueryParameters get a list of the cloudPcFrontLineServicePlan objects and their properties. type VirtualEndpointFrontLineServicePlansRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,7 +74,10 @@ func NewVirtualEndpointFrontLineServicePlansRequestBuilder(rawUrl string, reques func (m *VirtualEndpointFrontLineServicePlansRequestBuilder) Count()(*VirtualEndpointFrontLineServicePlansCountRequestBuilder) { return NewVirtualEndpointFrontLineServicePlansCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get frontLineServicePlans from deviceManagement +// Get get a list of the cloudPcFrontLineServicePlan objects and their properties. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/virtualendpoint-list-frontlineserviceplans?view=graph-rest-1.0 func (m *VirtualEndpointFrontLineServicePlansRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointFrontLineServicePlansRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcFrontLineServicePlanCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +115,7 @@ func (m *VirtualEndpointFrontLineServicePlansRequestBuilder) Post(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcFrontLineServicePlanable), nil } -// ToGetRequestInformation get frontLineServicePlans from deviceManagement +// ToGetRequestInformation get a list of the cloudPcFrontLineServicePlan objects and their properties. func (m *VirtualEndpointFrontLineServicePlansRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointFrontLineServicePlansRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/virtual_endpoint_reports_get_raw_remote_connection_reports_request_builder.go b/devicemanagement/virtual_endpoint_reports_get_raw_remote_connection_reports_request_builder.go index 1468c24ff2f..f940655ca32 100644 --- a/devicemanagement/virtual_endpoint_reports_get_raw_remote_connection_reports_request_builder.go +++ b/devicemanagement/virtual_endpoint_reports_get_raw_remote_connection_reports_request_builder.go @@ -30,7 +30,10 @@ func NewVirtualEndpointReportsGetRawRemoteConnectionReportsRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointReportsGetRawRemoteConnectionReportsRequestBuilderInternal(urlParams, requestAdapter) } -// Post invoke action getRawRemoteConnectionReports +// Post get the raw real-time remote connection report for a Cloud PC without any calculation, such as roundTripTime or available bandwidth, which are aggregated hourly from the raw event data. +// [Find more info here] +// +// [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcreports-getrawremoteconnectionreports?view=graph-rest-1.0 func (m *VirtualEndpointReportsGetRawRemoteConnectionReportsRequestBuilder) Post(ctx context.Context, body VirtualEndpointReportsGetRawRemoteConnectionReportsPostRequestBodyable, requestConfiguration *VirtualEndpointReportsGetRawRemoteConnectionReportsRequestBuilderPostRequestConfiguration)([]byte, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +52,7 @@ func (m *VirtualEndpointReportsGetRawRemoteConnectionReportsRequestBuilder) Post } return res.([]byte), nil } -// ToPostRequestInformation invoke action getRawRemoteConnectionReports +// ToPostRequestInformation get the raw real-time remote connection report for a Cloud PC without any calculation, such as roundTripTime or available bandwidth, which are aggregated hourly from the raw event data. func (m *VirtualEndpointReportsGetRawRemoteConnectionReportsRequestBuilder) ToPostRequestInformation(ctx context.Context, body VirtualEndpointReportsGetRawRemoteConnectionReportsPostRequestBodyable, requestConfiguration *VirtualEndpointReportsGetRawRemoteConnectionReportsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/devicemanagement/virtual_endpoint_reports_get_remote_connection_historical_reports_request_builder.go b/devicemanagement/virtual_endpoint_reports_get_remote_connection_historical_reports_request_builder.go index a0b4e822a45..8ac9d7111a5 100644 --- a/devicemanagement/virtual_endpoint_reports_get_remote_connection_historical_reports_request_builder.go +++ b/devicemanagement/virtual_endpoint_reports_get_remote_connection_historical_reports_request_builder.go @@ -30,7 +30,7 @@ func NewVirtualEndpointReportsGetRemoteConnectionHistoricalReportsRequestBuilder urlParams["request-raw-url"] = rawUrl return NewVirtualEndpointReportsGetRemoteConnectionHistoricalReportsRequestBuilderInternal(urlParams, requestAdapter) } -// Post get the remote connection history records of a Cloud PC during a given period. This API is available in the following national cloud deployments. +// Post get the remote connection history records of a Cloud PC during a given period. This report contains data such as signInDateTime, signOutDateTime, usageInHour, remoteSignInTimeInSec and roundTripTimeInMsP50, and so on. This data is aggregated hourly for a specified time period, such as the last seven days. This API is available in the following national cloud deployments. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/cloudpcreports-getremoteconnectionhistoricalreports?view=graph-rest-1.0 @@ -52,7 +52,7 @@ func (m *VirtualEndpointReportsGetRemoteConnectionHistoricalReportsRequestBuilde } return res.([]byte), nil } -// ToPostRequestInformation get the remote connection history records of a Cloud PC during a given period. This API is available in the following national cloud deployments. +// ToPostRequestInformation get the remote connection history records of a Cloud PC during a given period. This report contains data such as signInDateTime, signOutDateTime, usageInHour, remoteSignInTimeInSec and roundTripTimeInMsP50, and so on. This data is aggregated hourly for a specified time period, such as the last seven days. This API is available in the following national cloud deployments. func (m *VirtualEndpointReportsGetRemoteConnectionHistoricalReportsRequestBuilder) ToPostRequestInformation(ctx context.Context, body VirtualEndpointReportsGetRemoteConnectionHistoricalReportsPostRequestBodyable, requestConfiguration *VirtualEndpointReportsGetRemoteConnectionHistoricalReportsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/drives/item_items_drive_item_item_request_builder.go b/drives/item_items_drive_item_item_request_builder.go index ad9943268b6..dbbd5c39b97 100644 --- a/drives/item_items_drive_item_item_request_builder.go +++ b/drives/item_items_drive_item_item_request_builder.go @@ -168,10 +168,10 @@ func (m *ItemItemsDriveItemItemRequestBuilder) LastModifiedByUser()(*ItemItemsIt func (m *ItemItemsDriveItemItemRequestBuilder) ListItem()(*ItemItemsItemListItemRequestBuilder) { return NewItemItemsItemListItemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the metadata for a DriveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. This API is available in the following national cloud deployments. +// Patch to move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-move?view=graph-rest-1.0 func (m *ItemItemsDriveItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, requestConfiguration *ItemItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -250,7 +250,7 @@ func (m *ItemItemsDriveItemItemRequestBuilder) ToGetRequestInformation(ctx conte } return requestInfo, nil } -// ToPatchRequestInformation update the metadata for a DriveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. This API is available in the following national cloud deployments. +// ToPatchRequestInformation to move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. This API is available in the following national cloud deployments. func (m *ItemItemsDriveItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveItemable, requestConfiguration *ItemItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/drives/item_items_item_retention_label_request_builder.go b/drives/item_items_item_retention_label_request_builder.go index b5dfc89de42..60b0a6d3516 100644 --- a/drives/item_items_item_retention_label_request_builder.go +++ b/drives/item_items_item_retention_label_request_builder.go @@ -92,10 +92,10 @@ func (m *ItemItemsItemRetentionLabelRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable), nil } -// Patch apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. Conflict resolution is based on the following principle: explicit wins over implicit. For example, if a file in the folder has already been explicitly tagged with a label, that file doesn't inherit the label of the parent. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. This API is available in the following national cloud deployments. +// Patch lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-lockorunlockrecord?view=graph-rest-1.0 func (m *ItemItemsItemRetentionLabelRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -142,7 +142,7 @@ func (m *ItemItemsItemRetentionLabelRequestBuilder) ToGetRequestInformation(ctx } return requestInfo, nil } -// ToPatchRequestInformation apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. Conflict resolution is based on the following principle: explicit wins over implicit. For example, if a file in the folder has already been explicitly tagged with a label, that file doesn't inherit the label of the parent. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. This API is available in the following national cloud deployments. +// ToPatchRequestInformation lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. This API is available in the following national cloud deployments. func (m *ItemItemsItemRetentionLabelRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/drives/item_items_item_workbook_tables_add_request_builder.go b/drives/item_items_item_workbook_tables_add_request_builder.go index 58bbe8f9fc7..9008d1da22c 100644 --- a/drives/item_items_item_workbook_tables_add_request_builder.go +++ b/drives/item_items_item_workbook_tables_add_request_builder.go @@ -31,10 +31,10 @@ func NewItemItemsItemWorkbookTablesAddRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesAddRequestBuilderInternal(urlParams, requestAdapter) } -// Post create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. This API is available in the following national cloud deployments. +// Post use this API to create a new Table. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -53,7 +53,7 @@ func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) Post(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable), nil } -// ToPostRequestInformation create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. This API is available in the following national cloud deployments. +// ToPostRequestInformation use this API to create a new Table. This API is available in the following national cloud deployments. func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/drives/item_items_item_workbook_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_request_builder.go index 0bf086075ac..cf288a17f1c 100644 --- a/drives/item_items_item_workbook_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Count()(*ItemItem // Get retrieve a list of tablecolumn objects. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go index 65920d84501..c10f6f608dc 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Count()(*ItemI // Get retrieve a list of chart objects. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/chart-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go index 6b5bb4285ce..c66e4a4e2df 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go @@ -31,10 +31,10 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderInternal(urlParams, requestAdapter) } -// Post create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. This API is available in the following national cloud deployments. +// Post use this API to create a new Table. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -53,7 +53,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable), nil } -// ToPostRequestInformation create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. This API is available in the following national cloud deployments. +// ToPostRequestInformation use this API to create a new Table. This API is available in the following national cloud deployments. func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go index e415fd98c8f..b07ffc0f98d 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go @@ -81,7 +81,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Cou // Get retrieve a list of tablecolumn objects. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/education/users_education_user_item_request_builder.go b/education/users_education_user_item_request_builder.go index f675a10b3c0..4ff9fa6cddb 100644 --- a/education/users_education_user_item_request_builder.go +++ b/education/users_education_user_item_request_builder.go @@ -103,10 +103,10 @@ func (m *UsersEducationUserItemRequestBuilder) Get(ctx context.Context, requestC } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable), nil } -// Patch update the relatedContact collection of an educationUser object. This API is available in the following national cloud deployments. +// Patch update the properties of an educationuser object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/relatedcontact-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/educationuser-update?view=graph-rest-1.0 func (m *UsersEducationUserItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, requestConfiguration *UsersEducationUserItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -165,7 +165,7 @@ func (m *UsersEducationUserItemRequestBuilder) ToGetRequestInformation(ctx conte } return requestInfo, nil } -// ToPatchRequestInformation update the relatedContact collection of an educationUser object. This API is available in the following national cloud deployments. +// ToPatchRequestInformation update the properties of an educationuser object. This API is available in the following national cloud deployments. func (m *UsersEducationUserItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, requestConfiguration *UsersEducationUserItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go b/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go index b612abc6c5a..4464b30bf72 100644 --- a/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go +++ b/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go @@ -18,7 +18,7 @@ type IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderDeleteRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters read the properties and relationships of an industryDataConnector object. This API is available in the following national cloud deployments. +// IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters read the properties and relationships of an azureDataLakeConnector object. This API is available in the following national cloud deployments. type IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Dele } return nil } -// Get read the properties and relationships of an industryDataConnector object. This API is available in the following national cloud deployments. +// Get read the properties and relationships of an azureDataLakeConnector object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-get?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,10 +99,10 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Get( func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) MicrosoftGraphIndustryDataValidate()(*IndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilder) { return NewIndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an industryDataConnector object. This API is available in the following national cloud deployments. +// Patch update the properties of an azureDataLakeConnector object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-update?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -137,7 +137,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToDe } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an industryDataConnector object. This API is available in the following national cloud deployments. +// ToGetRequestInformation read the properties and relationships of an azureDataLakeConnector object. This API is available in the following national cloud deployments. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -153,7 +153,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGe } return requestInfo, nil } -// ToPatchRequestInformation update the properties of an industryDataConnector object. This API is available in the following national cloud deployments. +// ToPatchRequestInformation update the properties of an azureDataLakeConnector object. This API is available in the following national cloud deployments. func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/external/industry_data_data_connectors_request_builder.go b/external/industry_data_data_connectors_request_builder.go index 7527acfe2ce..2f83c96dece 100644 --- a/external/industry_data_data_connectors_request_builder.go +++ b/external/industry_data_data_connectors_request_builder.go @@ -11,7 +11,7 @@ import ( type IndustryDataDataConnectorsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// IndustryDataDataConnectorsRequestBuilderGetQueryParameters get a list of the azureDataLakeConnector objects and their properties. This API is available in the following national cloud deployments. +// IndustryDataDataConnectorsRequestBuilderGetQueryParameters get the industryDataConnector resources from the dataConnector navigation property. This API is available in the following national cloud deployments. type IndustryDataDataConnectorsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,10 @@ func NewIndustryDataDataConnectorsRequestBuilder(rawUrl string, requestAdapter i func (m *IndustryDataDataConnectorsRequestBuilder) Count()(*IndustryDataDataConnectorsCountRequestBuilder) { return NewIndustryDataDataConnectorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of the azureDataLakeConnector objects and their properties. This API is available in the following national cloud deployments. +// Get get the industryDataConnector resources from the dataConnector navigation property. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-list?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,10 +96,10 @@ func (m *IndustryDataDataConnectorsRequestBuilder) Get(ctx context.Context, requ } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorCollectionResponseable), nil } -// Post create a new industryDataConnector object. This API is available in the following national cloud deployments. +// Post create a new azureDataLakeConnector object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-post?view=graph-rest-1.0 func (m *IndustryDataDataConnectorsRequestBuilder) Post(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -118,7 +118,7 @@ func (m *IndustryDataDataConnectorsRequestBuilder) Post(ctx context.Context, bod } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable), nil } -// ToGetRequestInformation get a list of the azureDataLakeConnector objects and their properties. This API is available in the following national cloud deployments. +// ToGetRequestInformation get the industryDataConnector resources from the dataConnector navigation property. This API is available in the following national cloud deployments. func (m *IndustryDataDataConnectorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataDataConnectorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -134,7 +134,7 @@ func (m *IndustryDataDataConnectorsRequestBuilder) ToGetRequestInformation(ctx c } return requestInfo, nil } -// ToPostRequestInformation create a new industryDataConnector object. This API is available in the following national cloud deployments. +// ToPostRequestInformation create a new azureDataLakeConnector object. This API is available in the following national cloud deployments. func (m *IndustryDataDataConnectorsRequestBuilder) ToPostRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go b/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go index d1a217e62db..f1091bb9629 100644 --- a/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go +++ b/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go @@ -18,7 +18,7 @@ type IndustryDataInboundFlowsInboundFlowItemRequestBuilderDeleteRequestConfigura // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFlow object. This API is available in the following national cloud deployments. +// IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters read the properties and relationships of an inboundFileFlow object. This API is available in the following national cloud deployments. type IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -77,10 +77,10 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Delete(ctx conte } return nil } -// Get read the properties and relationships of an inboundFlow object. This API is available in the following national cloud deployments. +// Get read the properties and relationships of an inboundFileFlow object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-get?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,10 +99,10 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context. } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// Patch update the properties of an inboundFlow object. This API is available in the following national cloud deployments. +// Patch update the properties of an inboundFileFlow object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundflow-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-update?view=graph-rest-1.0 func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -133,7 +133,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToDeleteRequestI } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an inboundFlow object. This API is available in the following national cloud deployments. +// ToGetRequestInformation read the properties and relationships of an inboundFileFlow object. This API is available in the following national cloud deployments. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate @@ -149,7 +149,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInfo } return requestInfo, nil } -// ToPatchRequestInformation update the properties of an inboundFlow object. This API is available in the following national cloud deployments. +// ToPatchRequestInformation update the properties of an inboundFileFlow object. This API is available in the following national cloud deployments. func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/graph_request_adapter.go b/graph_request_adapter.go index c426b19ad63..029bce3318a 100644 --- a/graph_request_adapter.go +++ b/graph_request_adapter.go @@ -10,7 +10,7 @@ import ( var clientOptions = core.GraphClientOptions{ GraphServiceVersion: "beta", - GraphServiceLibraryVersion: "0.81.0", + GraphServiceLibraryVersion: "0.82.0", } // GetDefaultClientOptions returns the default client options used by the GraphRequestAdapterBase and the middleware. @@ -110,5 +110,6 @@ func NewGraphRequestAdapterWithParseNodeFactoryAndSerializationWriterFactoryAndH + diff --git a/groups/item_conversations_conversation_item_request_builder.go b/groups/item_conversations_conversation_item_request_builder.go index 07fa44204d1..60888f35035 100644 --- a/groups/item_conversations_conversation_item_request_builder.go +++ b/groups/item_conversations_conversation_item_request_builder.go @@ -18,7 +18,7 @@ type ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemConversationsConversationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of conversation object. This API is available in the following national cloud deployments. +// ItemConversationsConversationItemRequestBuilderGetQueryParameters get a conversation object. This API is available in the following national cloud deployments. type ItemConversationsConversationItemRequestBuilderGetQueryParameters struct { // Select properties to be returned Select []string `uriparametername:"%24select"` @@ -64,10 +64,10 @@ func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get retrieve the properties and relationships of conversation object. This API is available in the following national cloud deployments. +// Get get a conversation object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0 func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -102,7 +102,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInforma } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of conversation object. This API is available in the following national cloud deployments. +// ToGetRequestInformation get a conversation object. This API is available in the following national cloud deployments. func (m *ItemConversationsConversationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_conversations_item_threads_item_posts_item_in_reply_to_reply_request_builder.go b/groups/item_conversations_item_threads_item_posts_item_in_reply_to_reply_request_builder.go index 6fab5923b8e..35b99f17335 100644 --- a/groups/item_conversations_item_threads_item_posts_item_in_reply_to_reply_request_builder.go +++ b/groups/item_conversations_item_threads_item_posts_item_in_reply_to_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 func (m *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilder) Post(ctx context.Context, body ItemConversationsItemThreadsItemPostsItemInReplyToReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilder) } return nil } -// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. func (m *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemConversationsItemThreadsItemPostsItemInReplyToReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemPostsItemInReplyToReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_conversations_item_threads_item_posts_item_reply_request_builder.go b/groups/item_conversations_item_threads_item_posts_item_reply_request_builder.go index 7090c9c02f6..e38acc6f05c 100644 --- a/groups/item_conversations_item_threads_item_posts_item_reply_request_builder.go +++ b/groups/item_conversations_item_threads_item_posts_item_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemConversationsItemThreadsItemPostsItemReplyRequestBuilder(rawUrl stri urlParams["request-raw-url"] = rawUrl return NewItemConversationsItemThreadsItemPostsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 func (m *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilder) Post(ctx context.Context, body ItemConversationsItemThreadsItemPostsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilder) Post(ctx } return nil } -// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. func (m *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemConversationsItemThreadsItemPostsItemReplyPostRequestBodyable, requestConfiguration *ItemConversationsItemThreadsItemPostsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_conversations_request_builder.go b/groups/item_conversations_request_builder.go index ef278fbc56a..d87fbf47890 100644 --- a/groups/item_conversations_request_builder.go +++ b/groups/item_conversations_request_builder.go @@ -94,10 +94,10 @@ func (m *ItemConversationsRequestBuilder) Get(ctx context.Context, requestConfig } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationCollectionResponseable), nil } -// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// Post create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0 func (m *ItemConversationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -132,7 +132,7 @@ func (m *ItemConversationsRequestBuilder) ToGetRequestInformation(ctx context.Co } return requestInfo, nil } -// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// ToPostRequestInformation create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. This API is available in the following national cloud deployments. func (m *ItemConversationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_sites_item_lists_list_item_request_builder.go b/groups/item_sites_item_lists_list_item_request_builder.go index 19ede564dc0..e0c3fbb32d3 100644 --- a/groups/item_sites_item_lists_list_item_request_builder.go +++ b/groups/item_sites_item_lists_list_item_request_builder.go @@ -18,7 +18,7 @@ type ItemSitesItemListsListItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSitesItemListsListItemRequestBuilderGetQueryParameters get the list of richLongRunningOperations associated with a list. This API is available in the following national cloud deployments. +// ItemSitesItemListsListItemRequestBuilderGetQueryParameters return the metadata for a list][]. This API is available in the following [national cloud deployments. type ItemSitesItemListsListItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,10 +90,10 @@ func (m *ItemSitesItemListsListItemRequestBuilder) Delete(ctx context.Context, r func (m *ItemSitesItemListsListItemRequestBuilder) Drive()(*ItemSitesItemListsItemDriveRequestBuilder) { return NewItemSitesItemListsItemDriveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of richLongRunningOperations associated with a list. This API is available in the following national cloud deployments. +// Get return the metadata for a list][]. This API is available in the following [national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/list-get?view=graph-rest-1.0 func (m *ItemSitesItemListsListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsListItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Listable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -159,7 +159,7 @@ func (m *ItemSitesItemListsListItemRequestBuilder) ToDeleteRequestInformation(ct } return requestInfo, nil } -// ToGetRequestInformation get the list of richLongRunningOperations associated with a list. This API is available in the following national cloud deployments. +// ToGetRequestInformation return the metadata for a list][]. This API is available in the following [national cloud deployments. func (m *ItemSitesItemListsListItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsListItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_threads_item_posts_item_in_reply_to_reply_request_builder.go b/groups/item_threads_item_posts_item_in_reply_to_reply_request_builder.go index 5c482ccd05b..72230d7df46 100644 --- a/groups/item_threads_item_posts_item_in_reply_to_reply_request_builder.go +++ b/groups/item_threads_item_posts_item_in_reply_to_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemThreadsItemPostsItemInReplyToReplyRequestBuilder(rawUrl string, requ urlParams["request-raw-url"] = rawUrl return NewItemThreadsItemPostsItemInReplyToReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 func (m *ItemThreadsItemPostsItemInReplyToReplyRequestBuilder) Post(ctx context.Context, body ItemThreadsItemPostsItemInReplyToReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemPostsItemInReplyToReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemThreadsItemPostsItemInReplyToReplyRequestBuilder) Post(ctx context. } return nil } -// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. func (m *ItemThreadsItemPostsItemInReplyToReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemThreadsItemPostsItemInReplyToReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemPostsItemInReplyToReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/groups/item_threads_item_posts_item_reply_request_builder.go b/groups/item_threads_item_posts_item_reply_request_builder.go index 3aac9667f54..e612ec2e681 100644 --- a/groups/item_threads_item_posts_item_reply_request_builder.go +++ b/groups/item_threads_item_posts_item_reply_request_builder.go @@ -30,10 +30,10 @@ func NewItemThreadsItemPostsItemReplyRequestBuilder(rawUrl string, requestAdapte urlParams["request-raw-url"] = rawUrl return NewItemThreadsItemPostsItemReplyRequestBuilderInternal(urlParams, requestAdapter) } -// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// Post reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 func (m *ItemThreadsItemPostsItemReplyRequestBuilder) Post(ctx context.Context, body ItemThreadsItemPostsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemPostsItemReplyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -49,7 +49,7 @@ func (m *ItemThreadsItemPostsItemReplyRequestBuilder) Post(ctx context.Context, } return nil } -// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. This API is available in the following national cloud deployments. +// ToPostRequestInformation reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. This API is available in the following national cloud deployments. func (m *ItemThreadsItemPostsItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemThreadsItemPostsItemReplyPostRequestBodyable, requestConfiguration *ItemThreadsItemPostsItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go index a1411050c0f..79b503b51a5 100644 --- a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go +++ b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go @@ -18,7 +18,7 @@ type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. This API is available in the following national cloud deployments. +// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of a customAuthenticationExtension object. This API is available in the following national cloud deployments. type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,10 +73,10 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB } return nil } -// Get read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. This API is available in the following national cloud deployments. +// Get read the properties and relationships of a customAuthenticationExtension object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/authenticationeventlistener-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/customauthenticationextension-get?view=graph-rest-1.0 func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAuthenticationExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,7 +126,7 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. This API is available in the following national cloud deployments. +// ToGetRequestInformation read the properties and relationships of a customAuthenticationExtension object. This API is available in the following national cloud deployments. func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go b/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go index 33febb69499..c48ff14ae43 100644 --- a/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_custom_workflow_extensions_custom_callout_extension_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowEx // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. +// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -71,11 +71,11 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return nil } -// Get read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. +// Get read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -94,11 +94,11 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable), nil } -// Patch update the properties of an accessPackageAssignmentWorkflowExtension object. +// Patch update the properties of an accessPackageAssignmentRequestWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. This API is available in the following national cloud deployments. +// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. This API is available in the following national cloud deployments. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() @@ -147,7 +147,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return requestInfo, nil } -// ToPatchRequestInformation update the properties of an accessPackageAssignmentWorkflowExtension object. +// ToPatchRequestInformation update the properties of an accessPackageAssignmentRequestWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions on 2023-03-01 and will be removed 2023-12-31 func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() diff --git a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go index d8ee2d197f8..bd7807b4976 100644 --- a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderDeleteReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is available in the following national cloud deployments. +// EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an accessPackage object. This API is available in the following national cloud deployments. type EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -89,10 +89,10 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Del } return nil } -// Get retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is available in the following national cloud deployments. +// Get retrieve the properties and relationships of an accessPackage object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackage-list-accesspackageresourcerolescopes?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0 func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -161,7 +161,7 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToD } return requestInfo, nil } -// ToGetRequestInformation retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. This API is available in the following national cloud deployments. +// ToGetRequestInformation retrieve the properties and relationships of an accessPackage object. This API is available in the following national cloud deployments. func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go index 4c6b3209fc6..aeeaf282356 100644 --- a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go +++ b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go @@ -18,7 +18,7 @@ type TermsOfUseAgreementsAgreementItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an agreement object. This API is available in the following national cloud deployments. +// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve all files related to an agreement. This includes the default file and all localized files. This API is available in the following national cloud deployments. type TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -85,10 +85,10 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) File()(*TermsOfUseAgre func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Files()(*TermsOfUseAgreementsItemFilesRequestBuilder) { return NewTermsOfUseAgreementsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of an agreement object. This API is available in the following national cloud deployments. +// Get retrieve all files related to an agreement. This includes the default file and all localized files. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-list-files?view=graph-rest-1.0 func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Agreementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToDeleteRequestInforma } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an agreement object. This API is available in the following national cloud deployments. +// ToGetRequestInformation retrieve all files related to an agreement. This includes the default file and all localized files. This API is available in the following national cloud deployments. func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/identityprotection/risk_detections_risk_detection_item_request_builder.go b/identityprotection/risk_detections_risk_detection_item_request_builder.go index 1601e21f861..5a1fa4df2c1 100644 --- a/identityprotection/risk_detections_risk_detection_item_request_builder.go +++ b/identityprotection/risk_detections_risk_detection_item_request_builder.go @@ -18,7 +18,7 @@ type RiskDetectionsRiskDetectionItemRequestBuilderDeleteRequestConfiguration str // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters retrieve the properties of a collection of riskDetection objects. This API is available in the following national cloud deployments. +// RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters retrieve the properties of a riskDetection object. This API is available in the following national cloud deployments. type RiskDetectionsRiskDetectionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,10 +70,10 @@ func (m *RiskDetectionsRiskDetectionItemRequestBuilder) Delete(ctx context.Conte } return nil } -// Get retrieve the properties of a collection of riskDetection objects. This API is available in the following national cloud deployments. +// Get retrieve the properties of a riskDetection object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 func (m *RiskDetectionsRiskDetectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *RiskDetectionsRiskDetectionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -123,7 +123,7 @@ func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToDeleteRequestInformati } return requestInfo, nil } -// ToGetRequestInformation retrieve the properties of a collection of riskDetection objects. This API is available in the following national cloud deployments. +// ToGetRequestInformation retrieve the properties of a riskDetection object. This API is available in the following national cloud deployments. func (m *RiskDetectionsRiskDetectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRiskDetectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/kiota-lock.json b/kiota-lock.json index d08aa2fe6ba..e99a58bf38d 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "CBCD82D0CE3E546438042A91F011A5809B58E4D43B415D13C5447A5A95EFFF5F8510A46832A66A20749322945FE77BAAA14BA5449D806DBC20C0477208516CE0", + "descriptionHash": "B189D24F659471C54AD47683C673E2E73E1248062ACA079DE6CABB7D55CAF2F557CE31030E3A2EB79FAE1C64488B2C9B8E2CD643E3B18A1C17B109B4D1F24ACD", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.8.0", diff --git a/models/admin.go b/models/admin.go index 1f633573219..0336e8cba95 100644 --- a/models/admin.go +++ b/models/admin.go @@ -468,74 +468,3 @@ type Adminable interface { SetTodo(value AdminTodoable)() SetWindows(value AdminWindowsable)() } - - -// AdminWindows -type AdminWindows struct { - Entity -} -// NewAdminWindows instantiates a new adminWindows and sets the default values. -func NewAdminWindows()(*AdminWindows) { - m := &AdminWindows{ - Entity: *NewEntity(), - } - return m -} -// CreateAdminWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewAdminWindows(), nil -} -// GetFieldDeserializers the deserialization information for the current model -func (m *AdminWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.Entity.GetFieldDeserializers() - res["updates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAdminWindowsUpdatesFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetUpdates(val.(AdminWindowsUpdatesable)) - } - return nil - } - return res -} -// GetUpdates gets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. -func (m *AdminWindows) GetUpdates()(AdminWindowsUpdatesable) { - val, err := m.GetBackingStore().Get("updates") - if err != nil { - panic(err) - } - if val != nil { - return val.(AdminWindowsUpdatesable) - } - return nil -} -// Serialize serializes information the current object -func (m *AdminWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.Entity.Serialize(writer) - if err != nil { - return err - } - { - err = writer.WriteObjectValue("updates", m.GetUpdates()) - if err != nil { - return err - } - } - return nil -} -// SetUpdates sets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. -func (m *AdminWindows) SetUpdates(value AdminWindowsUpdatesable)() { - err := m.GetBackingStore().Set("updates", value) - if err != nil { - panic(err) - } -} -// AdminWindowsable -type AdminWindowsable interface { - Entityable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetUpdates()(AdminWindowsUpdatesable) - SetUpdates(value AdminWindowsUpdatesable)() -} diff --git a/models/admin_windows.go b/models/admin_windows.go new file mode 100644 index 00000000000..cdd938a9b06 --- /dev/null +++ b/models/admin_windows.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// AdminWindows +type AdminWindows struct { + Entity +} +// NewAdminWindows instantiates a new adminWindows and sets the default values. +func NewAdminWindows()(*AdminWindows) { + m := &AdminWindows{ + Entity: *NewEntity(), + } + return m +} +// CreateAdminWindowsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateAdminWindowsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAdminWindows(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *AdminWindows) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["updates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAdminWindowsUpdatesFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetUpdates(val.(AdminWindowsUpdatesable)) + } + return nil + } + return res +} +// GetUpdates gets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. +func (m *AdminWindows) GetUpdates()(AdminWindowsUpdatesable) { + val, err := m.GetBackingStore().Get("updates") + if err != nil { + panic(err) + } + if val != nil { + return val.(AdminWindowsUpdatesable) + } + return nil +} +// Serialize serializes information the current object +func (m *AdminWindows) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("updates", m.GetUpdates()) + if err != nil { + return err + } + } + return nil +} +// SetUpdates sets the updates property value. Entity that acts as a container for all Windows Update for Business deployment service functionalities. Read-only. +func (m *AdminWindows) SetUpdates(value AdminWindowsUpdatesable)() { + err := m.GetBackingStore().Set("updates", value) + if err != nil { + panic(err) + } +} +// AdminWindowsable +type AdminWindowsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUpdates()(AdminWindowsUpdatesable) + SetUpdates(value AdminWindowsUpdatesable)() +} diff --git a/models/application.go b/models/application.go index 8cde7a5e543..4d0c3f9fb35 100644 --- a/models/application.go +++ b/models/application.go @@ -34,7 +34,7 @@ func (m *Application) GetApi()(ApiApplicationable) { } return nil } -// GetAppId gets the appId property value. The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only. Supports $filter (eq). +// GetAppId gets the appId property value. The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only. Alternate key. Supports $filter (eq). func (m *Application) GetAppId()(*string) { val, err := m.GetBackingStore().Get("appId") if err != nil { @@ -1456,7 +1456,7 @@ func (m *Application) SetApi(value ApiApplicationable)() { panic(err) } } -// SetAppId sets the appId property value. The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only. Supports $filter (eq). +// SetAppId sets the appId property value. The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only. Alternate key. Supports $filter (eq). func (m *Application) SetAppId(value *string)() { err := m.GetBackingStore().Set("appId", value) if err != nil { diff --git a/models/authentication_methods_registration_campaign.go b/models/authentication_methods_registration_campaign.go index 11985355318..0444d63d45a 100644 --- a/models/authentication_methods_registration_campaign.go +++ b/models/authentication_methods_registration_campaign.go @@ -138,7 +138,7 @@ func (m *AuthenticationMethodsRegistrationCampaign) GetOdataType()(*string) { } return nil } -// GetSnoozeDurationInDays gets the snoozeDurationInDays property value. Specifies the number of days that the user sees a prompt again if they select 'Not now' and snoozes the prompt. Minimum 0 days. Maximum: 14 days. If the value is '0' – The user is prompted during every MFA attempt. +// GetSnoozeDurationInDays gets the snoozeDurationInDays property value. Specifies the number of days that the user sees a prompt again if they select 'Not now' and snoozes the prompt. Minimum 0 days. Maximum: 14 days. If the value is 0 – The user is prompted during every MFA attempt. func (m *AuthenticationMethodsRegistrationCampaign) GetSnoozeDurationInDays()(*int32) { val, err := m.GetBackingStore().Get("snoozeDurationInDays") if err != nil { @@ -245,7 +245,7 @@ func (m *AuthenticationMethodsRegistrationCampaign) SetOdataType(value *string)( panic(err) } } -// SetSnoozeDurationInDays sets the snoozeDurationInDays property value. Specifies the number of days that the user sees a prompt again if they select 'Not now' and snoozes the prompt. Minimum 0 days. Maximum: 14 days. If the value is '0' – The user is prompted during every MFA attempt. +// SetSnoozeDurationInDays sets the snoozeDurationInDays property value. Specifies the number of days that the user sees a prompt again if they select 'Not now' and snoozes the prompt. Minimum 0 days. Maximum: 14 days. If the value is 0 – The user is prompted during every MFA attempt. func (m *AuthenticationMethodsRegistrationCampaign) SetSnoozeDurationInDays(value *int32)() { err := m.GetBackingStore().Set("snoozeDurationInDays", value) if err != nil { diff --git a/models/cloud_pc_front_line_service_plan.go b/models/cloud_pc_front_line_service_plan.go index e8222894540..c07e27e2257 100644 --- a/models/cloud_pc_front_line_service_plan.go +++ b/models/cloud_pc_front_line_service_plan.go @@ -19,7 +19,7 @@ func NewCloudPcFrontLineServicePlan()(*CloudPcFrontLineServicePlan) { func CreateCloudPcFrontLineServicePlanFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCloudPcFrontLineServicePlan(), nil } -// GetDisplayName gets the displayName property value. The displayName property +// GetDisplayName gets the displayName property value. The display name of the front-line service plan. For example, 2vCPU/8GB/128GB Front-line or 4vCPU/16GB/256GB Front-line. func (m *CloudPcFrontLineServicePlan) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -65,7 +65,7 @@ func (m *CloudPcFrontLineServicePlan) GetFieldDeserializers()(map[string]func(i8 } return res } -// GetTotalCount gets the totalCount property value. The totalCount property +// GetTotalCount gets the totalCount property value. The total number of front-line service plans purchased by the customer. func (m *CloudPcFrontLineServicePlan) GetTotalCount()(*int32) { val, err := m.GetBackingStore().Get("totalCount") if err != nil { @@ -76,7 +76,7 @@ func (m *CloudPcFrontLineServicePlan) GetTotalCount()(*int32) { } return nil } -// GetUsedCount gets the usedCount property value. The usedCount property +// GetUsedCount gets the usedCount property value. The number of service plans that have been used for the account. func (m *CloudPcFrontLineServicePlan) GetUsedCount()(*int32) { val, err := m.GetBackingStore().Get("usedCount") if err != nil { @@ -113,21 +113,21 @@ func (m *CloudPcFrontLineServicePlan) Serialize(writer i878a80d2330e89d26896388a } return nil } -// SetDisplayName sets the displayName property value. The displayName property +// SetDisplayName sets the displayName property value. The display name of the front-line service plan. For example, 2vCPU/8GB/128GB Front-line or 4vCPU/16GB/256GB Front-line. func (m *CloudPcFrontLineServicePlan) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetTotalCount sets the totalCount property value. The totalCount property +// SetTotalCount sets the totalCount property value. The total number of front-line service plans purchased by the customer. func (m *CloudPcFrontLineServicePlan) SetTotalCount(value *int32)() { err := m.GetBackingStore().Set("totalCount", value) if err != nil { panic(err) } } -// SetUsedCount sets the usedCount property value. The usedCount property +// SetUsedCount sets the usedCount property value. The number of service plans that have been used for the account. func (m *CloudPcFrontLineServicePlan) SetUsedCount(value *int32)() { err := m.GetBackingStore().Set("usedCount", value) if err != nil { diff --git a/models/daily_inactive_users_by_application_metric.go b/models/daily_inactive_users_by_application_metric.go new file mode 100644 index 00000000000..2b6e71d7882 --- /dev/null +++ b/models/daily_inactive_users_by_application_metric.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// DailyInactiveUsersByApplicationMetric +type DailyInactiveUsersByApplicationMetric struct { + InactiveUsersByApplicationMetricBase +} +// NewDailyInactiveUsersByApplicationMetric instantiates a new dailyInactiveUsersByApplicationMetric and sets the default values. +func NewDailyInactiveUsersByApplicationMetric()(*DailyInactiveUsersByApplicationMetric) { + m := &DailyInactiveUsersByApplicationMetric{ + InactiveUsersByApplicationMetricBase: *NewInactiveUsersByApplicationMetricBase(), + } + return m +} +// CreateDailyInactiveUsersByApplicationMetricFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateDailyInactiveUsersByApplicationMetricFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDailyInactiveUsersByApplicationMetric(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *DailyInactiveUsersByApplicationMetric) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.InactiveUsersByApplicationMetricBase.GetFieldDeserializers() + res["inactive1DayCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactive1DayCount(val) + } + return nil + } + return res +} +// GetInactive1DayCount gets the inactive1DayCount property value. The inactive1DayCount property +func (m *DailyInactiveUsersByApplicationMetric) GetInactive1DayCount()(*int64) { + val, err := m.GetBackingStore().Get("inactive1DayCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *DailyInactiveUsersByApplicationMetric) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.InactiveUsersByApplicationMetricBase.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt64Value("inactive1DayCount", m.GetInactive1DayCount()) + if err != nil { + return err + } + } + return nil +} +// SetInactive1DayCount sets the inactive1DayCount property value. The inactive1DayCount property +func (m *DailyInactiveUsersByApplicationMetric) SetInactive1DayCount(value *int64)() { + err := m.GetBackingStore().Set("inactive1DayCount", value) + if err != nil { + panic(err) + } +} +// DailyInactiveUsersByApplicationMetricable +type DailyInactiveUsersByApplicationMetricable interface { + InactiveUsersByApplicationMetricBaseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetInactive1DayCount()(*int64) + SetInactive1DayCount(value *int64)() +} diff --git a/models/daily_inactive_users_metric.go b/models/daily_inactive_users_metric.go new file mode 100644 index 00000000000..c55226ac74e --- /dev/null +++ b/models/daily_inactive_users_metric.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// DailyInactiveUsersMetric +type DailyInactiveUsersMetric struct { + InactiveUsersMetricBase +} +// NewDailyInactiveUsersMetric instantiates a new dailyInactiveUsersMetric and sets the default values. +func NewDailyInactiveUsersMetric()(*DailyInactiveUsersMetric) { + m := &DailyInactiveUsersMetric{ + InactiveUsersMetricBase: *NewInactiveUsersMetricBase(), + } + return m +} +// CreateDailyInactiveUsersMetricFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateDailyInactiveUsersMetricFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDailyInactiveUsersMetric(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *DailyInactiveUsersMetric) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.InactiveUsersMetricBase.GetFieldDeserializers() + res["inactive1DayCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactive1DayCount(val) + } + return nil + } + return res +} +// GetInactive1DayCount gets the inactive1DayCount property value. The inactive1DayCount property +func (m *DailyInactiveUsersMetric) GetInactive1DayCount()(*int64) { + val, err := m.GetBackingStore().Get("inactive1DayCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *DailyInactiveUsersMetric) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.InactiveUsersMetricBase.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt64Value("inactive1DayCount", m.GetInactive1DayCount()) + if err != nil { + return err + } + } + return nil +} +// SetInactive1DayCount sets the inactive1DayCount property value. The inactive1DayCount property +func (m *DailyInactiveUsersMetric) SetInactive1DayCount(value *int64)() { + err := m.GetBackingStore().Set("inactive1DayCount", value) + if err != nil { + panic(err) + } +} +// DailyInactiveUsersMetricable +type DailyInactiveUsersMetricable interface { + InactiveUsersMetricBaseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetInactive1DayCount()(*int64) + SetInactive1DayCount(value *int64)() +} diff --git a/models/device.go b/models/device.go index 288e6397258..e2ba1b5c10d 100644 --- a/models/device.go +++ b/models/device.go @@ -709,7 +709,7 @@ func (m *Device) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638 } return res } -// GetHostnames gets the hostnames property value. List of hostNames for the device. +// GetHostnames gets the hostnames property value. List of host names for the device. func (m *Device) GetHostnames()([]string) { val, err := m.GetBackingStore().Get("hostnames") if err != nil { @@ -742,7 +742,7 @@ func (m *Device) GetIsManaged()(*bool) { } return nil } -// GetIsManagementRestricted gets the isManagementRestricted property value. true if the device is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. Default value is false. Read-only. To manage a device that's a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. +// GetIsManagementRestricted gets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a device that's a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. func (m *Device) GetIsManagementRestricted()(*bool) { val, err := m.GetBackingStore().Get("isManagementRestricted") if err != nil { @@ -764,7 +764,7 @@ func (m *Device) GetIsRooted()(*bool) { } return nil } -// GetKind gets the kind property value. Form factor of device. Only returned if user signs in with a Microsoft account as part of Project Rome. +// GetKind gets the kind property value. Form factor of the device. Only returned if the user signs in with a Microsoft account as part of Project Rome. func (m *Device) GetKind()(*string) { val, err := m.GetBackingStore().Get("kind") if err != nil { @@ -786,7 +786,7 @@ func (m *Device) GetManagementType()(*string) { } return nil } -// GetManufacturer gets the manufacturer property value. Manufacturer of device. Only returned if user signs in with a Microsoft account as part of Project Rome. +// GetManufacturer gets the manufacturer property value. Manufacturer of the device. Only returned if the user signs in with a Microsoft account as part of Project Rome. func (m *Device) GetManufacturer()(*string) { val, err := m.GetBackingStore().Get("manufacturer") if err != nil { @@ -819,7 +819,7 @@ func (m *Device) GetMemberOf()([]DirectoryObjectable) { } return nil } -// GetModel gets the model property value. Model of device. Only returned if user signs in with a Microsoft account as part of Project Rome. +// GetModel gets the model property value. Model of the device. Only returned if the user signs in with a Microsoft account as part of Project Rome. func (m *Device) GetModel()(*string) { val, err := m.GetBackingStore().Get("model") if err != nil { @@ -830,7 +830,7 @@ func (m *Device) GetModel()(*string) { } return nil } -// GetName gets the name property value. Friendly name of a device. Only returned if user signs in with a Microsoft account as part of Project Rome. +// GetName gets the name property value. Friendly name of the device. Only returned if user signs in with a Microsoft account as part of Project Rome. func (m *Device) GetName()(*string) { val, err := m.GetBackingStore().Get("name") if err != nil { @@ -852,7 +852,7 @@ func (m *Device) GetOnPremisesLastSyncDateTime()(*i336074805fc853987abe6f7fe3ad9 } return nil } -// GetOnPremisesSecurityIdentifier gets the onPremisesSecurityIdentifier property value. The onPremisesSecurityIdentifier property +// GetOnPremisesSecurityIdentifier gets the onPremisesSecurityIdentifier property value. The on-premises security identifier (SID) for the user who was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq). func (m *Device) GetOnPremisesSecurityIdentifier()(*string) { val, err := m.GetBackingStore().Get("onPremisesSecurityIdentifier") if err != nil { @@ -907,7 +907,7 @@ func (m *Device) GetPhysicalIds()([]string) { } return nil } -// GetPlatform gets the platform property value. Platform of device. Only returned if user signs in with a Microsoft account as part of Project Rome. Only returned if user signs in with a Microsoft account as part of Project Rome. +// GetPlatform gets the platform property value. Platform of device. Only returned if the user signs in with a Microsoft account as part of Project Rome. func (m *Device) GetPlatform()(*string) { val, err := m.GetBackingStore().Get("platform") if err != nil { @@ -995,7 +995,7 @@ func (m *Device) GetTransitiveMemberOf()([]DirectoryObjectable) { } return nil } -// GetTrustType gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory +// GetTrustType gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory. func (m *Device) GetTrustType()(*string) { val, err := m.GetBackingStore().Get("trustType") if err != nil { @@ -1449,7 +1449,7 @@ func (m *Device) SetExtensions(value []Extensionable)() { panic(err) } } -// SetHostnames sets the hostnames property value. List of hostNames for the device. +// SetHostnames sets the hostnames property value. List of host names for the device. func (m *Device) SetHostnames(value []string)() { err := m.GetBackingStore().Set("hostnames", value) if err != nil { @@ -1470,7 +1470,7 @@ func (m *Device) SetIsManaged(value *bool)() { panic(err) } } -// SetIsManagementRestricted sets the isManagementRestricted property value. true if the device is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. Default value is false. Read-only. To manage a device that's a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. +// SetIsManagementRestricted sets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a device that's a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. func (m *Device) SetIsManagementRestricted(value *bool)() { err := m.GetBackingStore().Set("isManagementRestricted", value) if err != nil { @@ -1484,7 +1484,7 @@ func (m *Device) SetIsRooted(value *bool)() { panic(err) } } -// SetKind sets the kind property value. Form factor of device. Only returned if user signs in with a Microsoft account as part of Project Rome. +// SetKind sets the kind property value. Form factor of the device. Only returned if the user signs in with a Microsoft account as part of Project Rome. func (m *Device) SetKind(value *string)() { err := m.GetBackingStore().Set("kind", value) if err != nil { @@ -1498,7 +1498,7 @@ func (m *Device) SetManagementType(value *string)() { panic(err) } } -// SetManufacturer sets the manufacturer property value. Manufacturer of device. Only returned if user signs in with a Microsoft account as part of Project Rome. +// SetManufacturer sets the manufacturer property value. Manufacturer of the device. Only returned if the user signs in with a Microsoft account as part of Project Rome. func (m *Device) SetManufacturer(value *string)() { err := m.GetBackingStore().Set("manufacturer", value) if err != nil { @@ -1519,14 +1519,14 @@ func (m *Device) SetMemberOf(value []DirectoryObjectable)() { panic(err) } } -// SetModel sets the model property value. Model of device. Only returned if user signs in with a Microsoft account as part of Project Rome. +// SetModel sets the model property value. Model of the device. Only returned if the user signs in with a Microsoft account as part of Project Rome. func (m *Device) SetModel(value *string)() { err := m.GetBackingStore().Set("model", value) if err != nil { panic(err) } } -// SetName sets the name property value. Friendly name of a device. Only returned if user signs in with a Microsoft account as part of Project Rome. +// SetName sets the name property value. Friendly name of the device. Only returned if user signs in with a Microsoft account as part of Project Rome. func (m *Device) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { @@ -1540,7 +1540,7 @@ func (m *Device) SetOnPremisesLastSyncDateTime(value *i336074805fc853987abe6f7fe panic(err) } } -// SetOnPremisesSecurityIdentifier sets the onPremisesSecurityIdentifier property value. The onPremisesSecurityIdentifier property +// SetOnPremisesSecurityIdentifier sets the onPremisesSecurityIdentifier property value. The on-premises security identifier (SID) for the user who was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq). func (m *Device) SetOnPremisesSecurityIdentifier(value *string)() { err := m.GetBackingStore().Set("onPremisesSecurityIdentifier", value) if err != nil { @@ -1575,7 +1575,7 @@ func (m *Device) SetPhysicalIds(value []string)() { panic(err) } } -// SetPlatform sets the platform property value. Platform of device. Only returned if user signs in with a Microsoft account as part of Project Rome. Only returned if user signs in with a Microsoft account as part of Project Rome. +// SetPlatform sets the platform property value. Platform of device. Only returned if the user signs in with a Microsoft account as part of Project Rome. func (m *Device) SetPlatform(value *string)() { err := m.GetBackingStore().Set("platform", value) if err != nil { @@ -1631,7 +1631,7 @@ func (m *Device) SetTransitiveMemberOf(value []DirectoryObjectable)() { panic(err) } } -// SetTrustType sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory +// SetTrustType sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory. func (m *Device) SetTrustType(value *string)() { err := m.GetBackingStore().Set("trustType", value) if err != nil { diff --git a/models/device_management_configuration_referred_setting_information.go b/models/device_management_configuration_referred_setting_information.go index 32aedc01dab..8fddbb0e965 100644 --- a/models/device_management_configuration_referred_setting_information.go +++ b/models/device_management_configuration_referred_setting_information.go @@ -74,7 +74,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) GetOdataType() } return nil } -// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting func (m *DeviceManagementConfigurationReferredSettingInformation) GetSettingDefinitionId()(*string) { val, err := m.GetBackingStore().Get("settingDefinitionId") if err != nil { @@ -125,7 +125,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) SetOdataType(v panic(err) } } -// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting func (m *DeviceManagementConfigurationReferredSettingInformation) SetSettingDefinitionId(value *string)() { err := m.GetBackingStore().Set("settingDefinitionId", value) if err != nil { diff --git a/models/device_management_configuration_setting_definition.go b/models/device_management_configuration_setting_definition.go index 584236fa74a..57e1c859b54 100644 --- a/models/device_management_configuration_setting_definition.go +++ b/models/device_management_configuration_setting_definition.go @@ -60,7 +60,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetAccessTypes()(*Devic } return nil } -// GetApplicability gets the applicability property value. Details which device setting is applicable on. Supports: $filters. +// GetApplicability gets the applicability property value. Details which device setting is applicable on func (m *DeviceManagementConfigurationSettingDefinition) GetApplicability()(DeviceManagementConfigurationSettingApplicabilityable) { val, err := m.GetBackingStore().Get("applicability") if err != nil { @@ -82,7 +82,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetBaseUri()(*string) { } return nil } -// GetCategoryId gets the categoryId property value. Specify category in which the setting is under. Support $filters. +// GetCategoryId gets the categoryId property value. Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) func (m *DeviceManagementConfigurationSettingDefinition) GetCategoryId()(*string) { val, err := m.GetBackingStore().Get("categoryId") if err != nil { @@ -93,7 +93,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetCategoryId()(*string } return nil } -// GetDescription gets the description property value. Description of the setting. +// GetDescription gets the description property value. Description of the item func (m *DeviceManagementConfigurationSettingDefinition) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") if err != nil { @@ -104,7 +104,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetDescription()(*strin } return nil } -// GetDisplayName gets the displayName property value. Name of the setting. For example: Allow Toast. +// GetDisplayName gets the displayName property value. Display name of the item func (m *DeviceManagementConfigurationSettingDefinition) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -318,7 +318,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetFieldDeserializers() } return res } -// GetHelpText gets the helpText property value. Help text of the setting. Give more details of the setting. +// GetHelpText gets the helpText property value. Help text of the item func (m *DeviceManagementConfigurationSettingDefinition) GetHelpText()(*string) { val, err := m.GetBackingStore().Get("helpText") if err != nil { @@ -329,7 +329,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetHelpText()(*string) } return nil } -// GetInfoUrls gets the infoUrls property value. List of links more info for the setting can be found at. +// GetInfoUrls gets the infoUrls property value. List of links more info for the setting can be found at func (m *DeviceManagementConfigurationSettingDefinition) GetInfoUrls()([]string) { val, err := m.GetBackingStore().Get("infoUrls") if err != nil { @@ -395,7 +395,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetReferredSettingInfor } return nil } -// GetRootDefinitionId gets the rootDefinitionId property value. Root setting definition id if the setting is a child setting. +// GetRootDefinitionId gets the rootDefinitionId property value. Root setting definition if the setting is a child setting. func (m *DeviceManagementConfigurationSettingDefinition) GetRootDefinitionId()(*string) { val, err := m.GetBackingStore().Get("rootDefinitionId") if err != nil { @@ -583,7 +583,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetAccessTypes(value *D panic(err) } } -// SetApplicability sets the applicability property value. Details which device setting is applicable on. Supports: $filters. +// SetApplicability sets the applicability property value. Details which device setting is applicable on func (m *DeviceManagementConfigurationSettingDefinition) SetApplicability(value DeviceManagementConfigurationSettingApplicabilityable)() { err := m.GetBackingStore().Set("applicability", value) if err != nil { @@ -597,35 +597,35 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetBaseUri(value *strin panic(err) } } -// SetCategoryId sets the categoryId property value. Specify category in which the setting is under. Support $filters. +// SetCategoryId sets the categoryId property value. Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) func (m *DeviceManagementConfigurationSettingDefinition) SetCategoryId(value *string)() { err := m.GetBackingStore().Set("categoryId", value) if err != nil { panic(err) } } -// SetDescription sets the description property value. Description of the setting. +// SetDescription sets the description property value. Description of the item func (m *DeviceManagementConfigurationSettingDefinition) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. Name of the setting. For example: Allow Toast. +// SetDisplayName sets the displayName property value. Display name of the item func (m *DeviceManagementConfigurationSettingDefinition) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetHelpText sets the helpText property value. Help text of the setting. Give more details of the setting. +// SetHelpText sets the helpText property value. Help text of the item func (m *DeviceManagementConfigurationSettingDefinition) SetHelpText(value *string)() { err := m.GetBackingStore().Set("helpText", value) if err != nil { panic(err) } } -// SetInfoUrls sets the infoUrls property value. List of links more info for the setting can be found at. +// SetInfoUrls sets the infoUrls property value. List of links more info for the setting can be found at func (m *DeviceManagementConfigurationSettingDefinition) SetInfoUrls(value []string)() { err := m.GetBackingStore().Set("infoUrls", value) if err != nil { @@ -667,7 +667,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetReferredSettingInfor panic(err) } } -// SetRootDefinitionId sets the rootDefinitionId property value. Root setting definition id if the setting is a child setting. +// SetRootDefinitionId sets the rootDefinitionId property value. Root setting definition if the setting is a child setting. func (m *DeviceManagementConfigurationSettingDefinition) SetRootDefinitionId(value *string)() { err := m.GetBackingStore().Set("rootDefinitionId", value) if err != nil { diff --git a/models/device_management_configuration_setting_group_definition.go b/models/device_management_configuration_setting_group_definition.go index 903241e4d89..bd3bc86750e 100644 --- a/models/device_management_configuration_setting_group_definition.go +++ b/models/device_management_configuration_setting_group_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSettingGroupDefinitionFromDiscriminatorV } return NewDeviceManagementConfigurationSettingGroupDefinition(), nil } -// GetChildIds gets the childIds property value. Dependent child settings to this group of settings. +// GetChildIds gets the childIds property value. Dependent child settings to this group of settings func (m *DeviceManagementConfigurationSettingGroupDefinition) GetChildIds()([]string) { val, err := m.GetBackingStore().Get("childIds") if err != nil { @@ -161,7 +161,7 @@ func (m *DeviceManagementConfigurationSettingGroupDefinition) Serialize(writer i } return nil } -// SetChildIds sets the childIds property value. Dependent child settings to this group of settings. +// SetChildIds sets the childIds property value. Dependent child settings to this group of settings func (m *DeviceManagementConfigurationSettingGroupDefinition) SetChildIds(value []string)() { err := m.GetBackingStore().Set("childIds", value) if err != nil { diff --git a/models/entity.go b/models/entity.go index 1c7a6908b24..f46b1a26f90 100644 --- a/models/entity.go +++ b/models/entity.go @@ -698,6 +698,10 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewCustomSecurityAttributeAudit(), nil case "#microsoft.graph.customSecurityAttributeDefinition": return NewCustomSecurityAttributeDefinition(), nil + case "#microsoft.graph.dailyInactiveUsersByApplicationMetric": + return NewDailyInactiveUsersByApplicationMetric(), nil + case "#microsoft.graph.dailyInactiveUsersMetric": + return NewDailyInactiveUsersMetric(), nil case "#microsoft.graph.dataClassificationService": return NewDataClassificationService(), nil case "#microsoft.graph.dataCollectionInfo": @@ -1332,6 +1336,10 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewImportedWindowsAutopilotDeviceIdentity(), nil case "#microsoft.graph.importedWindowsAutopilotDeviceIdentityUpload": return NewImportedWindowsAutopilotDeviceIdentityUpload(), nil + case "#microsoft.graph.inactiveUsersByApplicationMetricBase": + return NewInactiveUsersByApplicationMetricBase(), nil + case "#microsoft.graph.inactiveUsersMetricBase": + return NewInactiveUsersMetricBase(), nil case "#microsoft.graph.inferenceClassification": return NewInferenceClassification(), nil case "#microsoft.graph.inferenceClassificationOverride": @@ -1724,6 +1732,10 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewMobileThreatDefenseConnector(), nil case "#microsoft.graph.mobilityManagementPolicy": return NewMobilityManagementPolicy(), nil + case "#microsoft.graph.monthlyInactiveUsersByApplicationMetric": + return NewMonthlyInactiveUsersByApplicationMetric(), nil + case "#microsoft.graph.monthlyInactiveUsersMetric": + return NewMonthlyInactiveUsersMetric(), nil case "#microsoft.graph.multiTenantOrganization": return NewMultiTenantOrganization(), nil case "#microsoft.graph.multiTenantOrganizationIdentitySyncPolicyTemplate": diff --git a/models/externalconnectors/property.go b/models/externalconnectors/property.go index 74e006c7b79..3c422114272 100644 --- a/models/externalconnectors/property.go +++ b/models/externalconnectors/property.go @@ -231,7 +231,7 @@ func (m *Property) GetIsSearchable()(*bool) { } return nil } -// GetLabels gets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl, containerName, containerUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconUrl, containerName, containerUrl. +// GetLabels gets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, containerName, containerUrl, iconUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: containerName, containerUrl, iconUrl. func (m *Property) GetLabels()([]Label) { val, err := m.GetBackingStore().Get("labels") if err != nil { @@ -416,7 +416,7 @@ func (m *Property) SetIsSearchable(value *bool)() { panic(err) } } -// SetLabels sets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl, containerName, containerUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconUrl, containerName, containerUrl. +// SetLabels sets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, containerName, containerUrl, iconUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: containerName, containerUrl, iconUrl. func (m *Property) SetLabels(value []Label)() { err := m.GetBackingStore().Set("labels", value) if err != nil { diff --git a/models/identity.go b/models/identity.go index 2e53c0fae1c..9d1e28cdf53 100644 --- a/models/identity.go +++ b/models/identity.go @@ -96,7 +96,7 @@ func (m *Identity) GetAdditionalData()(map[string]any) { func (m *Identity) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDisplayName gets the displayName property value. The display name of the identity. This might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. +// GetDisplayName gets the displayName property value. The display name of the identity. This property is read-only. func (m *Identity) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") if err != nil { @@ -142,7 +142,7 @@ func (m *Identity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetId gets the id property value. Unique identifier for the identity. +// GetId gets the id property value. The identifier of the identity. This property is read-only. func (m *Identity) GetId()(*string) { val, err := m.GetBackingStore().Get("id") if err != nil { @@ -203,14 +203,14 @@ func (m *Identity) SetAdditionalData(value map[string]any)() { func (m *Identity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDisplayName sets the displayName property value. The display name of the identity. This might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. +// SetDisplayName sets the displayName property value. The display name of the identity. This property is read-only. func (m *Identity) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetId sets the id property value. Unique identifier for the identity. +// SetId sets the id property value. The identifier of the identity. This property is read-only. func (m *Identity) SetId(value *string)() { err := m.GetBackingStore().Set("id", value) if err != nil { diff --git a/models/inactive_users_by_application_metric_base.go b/models/inactive_users_by_application_metric_base.go new file mode 100644 index 00000000000..031e6ef4ab7 --- /dev/null +++ b/models/inactive_users_by_application_metric_base.go @@ -0,0 +1,203 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// InactiveUsersByApplicationMetricBase +type InactiveUsersByApplicationMetricBase struct { + Entity +} +// NewInactiveUsersByApplicationMetricBase instantiates a new inactiveUsersByApplicationMetricBase and sets the default values. +func NewInactiveUsersByApplicationMetricBase()(*InactiveUsersByApplicationMetricBase) { + m := &InactiveUsersByApplicationMetricBase{ + Entity: *NewEntity(), + } + return m +} +// CreateInactiveUsersByApplicationMetricBaseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateInactiveUsersByApplicationMetricBaseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.dailyInactiveUsersByApplicationMetric": + return NewDailyInactiveUsersByApplicationMetric(), nil + case "#microsoft.graph.monthlyInactiveUsersByApplicationMetric": + return NewMonthlyInactiveUsersByApplicationMetric(), nil + } + } + } + } + return NewInactiveUsersByApplicationMetricBase(), nil +} +// GetFactDate gets the factDate property value. The factDate property +func (m *InactiveUsersByApplicationMetricBase) GetFactDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("factDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *InactiveUsersByApplicationMetricBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["factDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetFactDate(val) + } + return nil + } + res["inactive30DayCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactive30DayCount(val) + } + return nil + } + res["inactive60DayCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactive60DayCount(val) + } + return nil + } + res["inactive90DayCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactive90DayCount(val) + } + return nil + } + return res +} +// GetInactive30DayCount gets the inactive30DayCount property value. The inactive30DayCount property +func (m *InactiveUsersByApplicationMetricBase) GetInactive30DayCount()(*int64) { + val, err := m.GetBackingStore().Get("inactive30DayCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetInactive60DayCount gets the inactive60DayCount property value. The inactive60DayCount property +func (m *InactiveUsersByApplicationMetricBase) GetInactive60DayCount()(*int64) { + val, err := m.GetBackingStore().Get("inactive60DayCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetInactive90DayCount gets the inactive90DayCount property value. The inactive90DayCount property +func (m *InactiveUsersByApplicationMetricBase) GetInactive90DayCount()(*int64) { + val, err := m.GetBackingStore().Get("inactive90DayCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *InactiveUsersByApplicationMetricBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteDateOnlyValue("factDate", m.GetFactDate()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("inactive30DayCount", m.GetInactive30DayCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("inactive60DayCount", m.GetInactive60DayCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("inactive90DayCount", m.GetInactive90DayCount()) + if err != nil { + return err + } + } + return nil +} +// SetFactDate sets the factDate property value. The factDate property +func (m *InactiveUsersByApplicationMetricBase) SetFactDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("factDate", value) + if err != nil { + panic(err) + } +} +// SetInactive30DayCount sets the inactive30DayCount property value. The inactive30DayCount property +func (m *InactiveUsersByApplicationMetricBase) SetInactive30DayCount(value *int64)() { + err := m.GetBackingStore().Set("inactive30DayCount", value) + if err != nil { + panic(err) + } +} +// SetInactive60DayCount sets the inactive60DayCount property value. The inactive60DayCount property +func (m *InactiveUsersByApplicationMetricBase) SetInactive60DayCount(value *int64)() { + err := m.GetBackingStore().Set("inactive60DayCount", value) + if err != nil { + panic(err) + } +} +// SetInactive90DayCount sets the inactive90DayCount property value. The inactive90DayCount property +func (m *InactiveUsersByApplicationMetricBase) SetInactive90DayCount(value *int64)() { + err := m.GetBackingStore().Set("inactive90DayCount", value) + if err != nil { + panic(err) + } +} +// InactiveUsersByApplicationMetricBaseable +type InactiveUsersByApplicationMetricBaseable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFactDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + GetInactive30DayCount()(*int64) + GetInactive60DayCount()(*int64) + GetInactive90DayCount()(*int64) + SetFactDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() + SetInactive30DayCount(value *int64)() + SetInactive60DayCount(value *int64)() + SetInactive90DayCount(value *int64)() +} diff --git a/models/inactive_users_metric_base.go b/models/inactive_users_metric_base.go new file mode 100644 index 00000000000..5decee0527e --- /dev/null +++ b/models/inactive_users_metric_base.go @@ -0,0 +1,203 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// InactiveUsersMetricBase +type InactiveUsersMetricBase struct { + Entity +} +// NewInactiveUsersMetricBase instantiates a new inactiveUsersMetricBase and sets the default values. +func NewInactiveUsersMetricBase()(*InactiveUsersMetricBase) { + m := &InactiveUsersMetricBase{ + Entity: *NewEntity(), + } + return m +} +// CreateInactiveUsersMetricBaseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateInactiveUsersMetricBaseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.dailyInactiveUsersMetric": + return NewDailyInactiveUsersMetric(), nil + case "#microsoft.graph.monthlyInactiveUsersMetric": + return NewMonthlyInactiveUsersMetric(), nil + } + } + } + } + return NewInactiveUsersMetricBase(), nil +} +// GetFactDate gets the factDate property value. The factDate property +func (m *InactiveUsersMetricBase) GetFactDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("factDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *InactiveUsersMetricBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["factDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetFactDate(val) + } + return nil + } + res["inactive30DayCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactive30DayCount(val) + } + return nil + } + res["inactive60DayCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactive60DayCount(val) + } + return nil + } + res["inactive90DayCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactive90DayCount(val) + } + return nil + } + return res +} +// GetInactive30DayCount gets the inactive30DayCount property value. The inactive30DayCount property +func (m *InactiveUsersMetricBase) GetInactive30DayCount()(*int64) { + val, err := m.GetBackingStore().Get("inactive30DayCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetInactive60DayCount gets the inactive60DayCount property value. The inactive60DayCount property +func (m *InactiveUsersMetricBase) GetInactive60DayCount()(*int64) { + val, err := m.GetBackingStore().Get("inactive60DayCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetInactive90DayCount gets the inactive90DayCount property value. The inactive90DayCount property +func (m *InactiveUsersMetricBase) GetInactive90DayCount()(*int64) { + val, err := m.GetBackingStore().Get("inactive90DayCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *InactiveUsersMetricBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteDateOnlyValue("factDate", m.GetFactDate()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("inactive30DayCount", m.GetInactive30DayCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("inactive60DayCount", m.GetInactive60DayCount()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("inactive90DayCount", m.GetInactive90DayCount()) + if err != nil { + return err + } + } + return nil +} +// SetFactDate sets the factDate property value. The factDate property +func (m *InactiveUsersMetricBase) SetFactDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("factDate", value) + if err != nil { + panic(err) + } +} +// SetInactive30DayCount sets the inactive30DayCount property value. The inactive30DayCount property +func (m *InactiveUsersMetricBase) SetInactive30DayCount(value *int64)() { + err := m.GetBackingStore().Set("inactive30DayCount", value) + if err != nil { + panic(err) + } +} +// SetInactive60DayCount sets the inactive60DayCount property value. The inactive60DayCount property +func (m *InactiveUsersMetricBase) SetInactive60DayCount(value *int64)() { + err := m.GetBackingStore().Set("inactive60DayCount", value) + if err != nil { + panic(err) + } +} +// SetInactive90DayCount sets the inactive90DayCount property value. The inactive90DayCount property +func (m *InactiveUsersMetricBase) SetInactive90DayCount(value *int64)() { + err := m.GetBackingStore().Set("inactive90DayCount", value) + if err != nil { + panic(err) + } +} +// InactiveUsersMetricBaseable +type InactiveUsersMetricBaseable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetFactDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + GetInactive30DayCount()(*int64) + GetInactive60DayCount()(*int64) + GetInactive90DayCount()(*int64) + SetFactDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() + SetInactive30DayCount(value *int64)() + SetInactive60DayCount(value *int64)() + SetInactive90DayCount(value *int64)() +} diff --git a/models/key_value.go b/models/key_value.go index f457b180f2f..bc582aa0d2e 100644 --- a/models/key_value.go +++ b/models/key_value.go @@ -73,7 +73,7 @@ func (m *KeyValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetKey gets the key property value. Key. +// GetKey gets the key property value. Contains the name of the field that a value is associated with. func (m *KeyValue) GetKey()(*string) { val, err := m.GetBackingStore().Get("key") if err != nil { @@ -95,7 +95,7 @@ func (m *KeyValue) GetOdataType()(*string) { } return nil } -// GetValue gets the value property value. Value. +// GetValue gets the value property value. Contains the corresponding value for the specified key. func (m *KeyValue) GetValue()(*string) { val, err := m.GetBackingStore().Get("value") if err != nil { @@ -145,7 +145,7 @@ func (m *KeyValue) SetAdditionalData(value map[string]any)() { func (m *KeyValue) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetKey sets the key property value. Key. +// SetKey sets the key property value. Contains the name of the field that a value is associated with. func (m *KeyValue) SetKey(value *string)() { err := m.GetBackingStore().Set("key", value) if err != nil { @@ -159,7 +159,7 @@ func (m *KeyValue) SetOdataType(value *string)() { panic(err) } } -// SetValue sets the value property value. Value. +// SetValue sets the value property value. Contains the corresponding value for the specified key. func (m *KeyValue) SetValue(value *string)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/mac_os_lob_app_assignment_settings.go b/models/mac_os_lob_app_assignment_settings.go index 3f00c04ddb3..1ef77798b5e 100644 --- a/models/mac_os_lob_app_assignment_settings.go +++ b/models/mac_os_lob_app_assignment_settings.go @@ -36,7 +36,7 @@ func (m *MacOsLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func( } return res } -// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. +// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. func (m *MacOsLobAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { val, err := m.GetBackingStore().Get("uninstallOnDeviceRemoval") if err != nil { @@ -61,7 +61,7 @@ func (m *MacOsLobAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689638 } return nil } -// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. +// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. func (m *MacOsLobAppAssignmentSettings) SetUninstallOnDeviceRemoval(value *bool)() { err := m.GetBackingStore().Set("uninstallOnDeviceRemoval", value) if err != nil { diff --git a/models/monthly_inactive_users_by_application_metric.go b/models/monthly_inactive_users_by_application_metric.go new file mode 100644 index 00000000000..f371e9df879 --- /dev/null +++ b/models/monthly_inactive_users_by_application_metric.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MonthlyInactiveUsersByApplicationMetric +type MonthlyInactiveUsersByApplicationMetric struct { + InactiveUsersByApplicationMetricBase +} +// NewMonthlyInactiveUsersByApplicationMetric instantiates a new monthlyInactiveUsersByApplicationMetric and sets the default values. +func NewMonthlyInactiveUsersByApplicationMetric()(*MonthlyInactiveUsersByApplicationMetric) { + m := &MonthlyInactiveUsersByApplicationMetric{ + InactiveUsersByApplicationMetricBase: *NewInactiveUsersByApplicationMetricBase(), + } + return m +} +// CreateMonthlyInactiveUsersByApplicationMetricFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMonthlyInactiveUsersByApplicationMetricFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMonthlyInactiveUsersByApplicationMetric(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MonthlyInactiveUsersByApplicationMetric) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.InactiveUsersByApplicationMetricBase.GetFieldDeserializers() + res["inactiveCalendarMonthCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactiveCalendarMonthCount(val) + } + return nil + } + return res +} +// GetInactiveCalendarMonthCount gets the inactiveCalendarMonthCount property value. The inactiveCalendarMonthCount property +func (m *MonthlyInactiveUsersByApplicationMetric) GetInactiveCalendarMonthCount()(*int64) { + val, err := m.GetBackingStore().Get("inactiveCalendarMonthCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *MonthlyInactiveUsersByApplicationMetric) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.InactiveUsersByApplicationMetricBase.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt64Value("inactiveCalendarMonthCount", m.GetInactiveCalendarMonthCount()) + if err != nil { + return err + } + } + return nil +} +// SetInactiveCalendarMonthCount sets the inactiveCalendarMonthCount property value. The inactiveCalendarMonthCount property +func (m *MonthlyInactiveUsersByApplicationMetric) SetInactiveCalendarMonthCount(value *int64)() { + err := m.GetBackingStore().Set("inactiveCalendarMonthCount", value) + if err != nil { + panic(err) + } +} +// MonthlyInactiveUsersByApplicationMetricable +type MonthlyInactiveUsersByApplicationMetricable interface { + InactiveUsersByApplicationMetricBaseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetInactiveCalendarMonthCount()(*int64) + SetInactiveCalendarMonthCount(value *int64)() +} diff --git a/models/monthly_inactive_users_metric.go b/models/monthly_inactive_users_metric.go new file mode 100644 index 00000000000..2ca46131f29 --- /dev/null +++ b/models/monthly_inactive_users_metric.go @@ -0,0 +1,75 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// MonthlyInactiveUsersMetric +type MonthlyInactiveUsersMetric struct { + InactiveUsersMetricBase +} +// NewMonthlyInactiveUsersMetric instantiates a new monthlyInactiveUsersMetric and sets the default values. +func NewMonthlyInactiveUsersMetric()(*MonthlyInactiveUsersMetric) { + m := &MonthlyInactiveUsersMetric{ + InactiveUsersMetricBase: *NewInactiveUsersMetricBase(), + } + return m +} +// CreateMonthlyInactiveUsersMetricFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateMonthlyInactiveUsersMetricFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMonthlyInactiveUsersMetric(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *MonthlyInactiveUsersMetric) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.InactiveUsersMetricBase.GetFieldDeserializers() + res["inactiveCalendarMonthCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInactiveCalendarMonthCount(val) + } + return nil + } + return res +} +// GetInactiveCalendarMonthCount gets the inactiveCalendarMonthCount property value. The inactiveCalendarMonthCount property +func (m *MonthlyInactiveUsersMetric) GetInactiveCalendarMonthCount()(*int64) { + val, err := m.GetBackingStore().Get("inactiveCalendarMonthCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *MonthlyInactiveUsersMetric) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.InactiveUsersMetricBase.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt64Value("inactiveCalendarMonthCount", m.GetInactiveCalendarMonthCount()) + if err != nil { + return err + } + } + return nil +} +// SetInactiveCalendarMonthCount sets the inactiveCalendarMonthCount property value. The inactiveCalendarMonthCount property +func (m *MonthlyInactiveUsersMetric) SetInactiveCalendarMonthCount(value *int64)() { + err := m.GetBackingStore().Set("inactiveCalendarMonthCount", value) + if err != nil { + panic(err) + } +} +// MonthlyInactiveUsersMetricable +type MonthlyInactiveUsersMetricable interface { + InactiveUsersMetricBaseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetInactiveCalendarMonthCount()(*int64) + SetInactiveCalendarMonthCount(value *int64)() +} diff --git a/models/networkaccess/cross_tenant_access.go b/models/networkaccess/cross_tenant_access.go new file mode 100644 index 00000000000..7a021d94eb0 --- /dev/null +++ b/models/networkaccess/cross_tenant_access.go @@ -0,0 +1,364 @@ +package networkaccess + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// CrossTenantAccess +type CrossTenantAccess struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCrossTenantAccess instantiates a new crossTenantAccess and sets the default values. +func NewCrossTenantAccess()(*CrossTenantAccess) { + m := &CrossTenantAccess{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCrossTenantAccessFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateCrossTenantAccessFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCrossTenantAccess(), 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. +func (m *CrossTenantAccess) 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. +func (m *CrossTenantAccess) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDeviceCount gets the deviceCount property value. The deviceCount property +func (m *CrossTenantAccess) GetDeviceCount()(*int64) { + val, err := m.GetBackingStore().Get("deviceCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *CrossTenantAccess) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["deviceCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetDeviceCount(val) + } + return nil + } + res["lastAccessDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastAccessDateTime(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["resourceTenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceTenantId(val) + } + return nil + } + res["resourceTenantName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceTenantName(val) + } + return nil + } + res["resourceTenantPrimaryDomain"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceTenantPrimaryDomain(val) + } + return nil + } + res["usageStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseUsageStatus) + if err != nil { + return err + } + if val != nil { + m.SetUsageStatus(val.(*UsageStatus)) + } + return nil + } + res["userCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetUserCount(val) + } + return nil + } + return res +} +// GetLastAccessDateTime gets the lastAccessDateTime property value. The lastAccessDateTime property +func (m *CrossTenantAccess) GetLastAccessDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastAccessDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *CrossTenantAccess) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetResourceTenantId gets the resourceTenantId property value. The resourceTenantId property +func (m *CrossTenantAccess) GetResourceTenantId()(*string) { + val, err := m.GetBackingStore().Get("resourceTenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetResourceTenantName gets the resourceTenantName property value. The resourceTenantName property +func (m *CrossTenantAccess) GetResourceTenantName()(*string) { + val, err := m.GetBackingStore().Get("resourceTenantName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetResourceTenantPrimaryDomain gets the resourceTenantPrimaryDomain property value. The resourceTenantPrimaryDomain property +func (m *CrossTenantAccess) GetResourceTenantPrimaryDomain()(*string) { + val, err := m.GetBackingStore().Get("resourceTenantPrimaryDomain") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUsageStatus gets the usageStatus property value. The usageStatus property +func (m *CrossTenantAccess) GetUsageStatus()(*UsageStatus) { + val, err := m.GetBackingStore().Get("usageStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*UsageStatus) + } + return nil +} +// GetUserCount gets the userCount property value. The userCount property +func (m *CrossTenantAccess) GetUserCount()(*int64) { + val, err := m.GetBackingStore().Get("userCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *CrossTenantAccess) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt64Value("deviceCount", m.GetDeviceCount()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastAccessDateTime", m.GetLastAccessDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceTenantId", m.GetResourceTenantId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceTenantName", m.GetResourceTenantName()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("resourceTenantPrimaryDomain", m.GetResourceTenantPrimaryDomain()) + if err != nil { + return err + } + } + if m.GetUsageStatus() != nil { + cast := (*m.GetUsageStatus()).String() + err := writer.WriteStringValue("usageStatus", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("userCount", m.GetUserCount()) + 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 *CrossTenantAccess) 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 *CrossTenantAccess) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDeviceCount sets the deviceCount property value. The deviceCount property +func (m *CrossTenantAccess) SetDeviceCount(value *int64)() { + err := m.GetBackingStore().Set("deviceCount", value) + if err != nil { + panic(err) + } +} +// SetLastAccessDateTime sets the lastAccessDateTime property value. The lastAccessDateTime property +func (m *CrossTenantAccess) SetLastAccessDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastAccessDateTime", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CrossTenantAccess) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetResourceTenantId sets the resourceTenantId property value. The resourceTenantId property +func (m *CrossTenantAccess) SetResourceTenantId(value *string)() { + err := m.GetBackingStore().Set("resourceTenantId", value) + if err != nil { + panic(err) + } +} +// SetResourceTenantName sets the resourceTenantName property value. The resourceTenantName property +func (m *CrossTenantAccess) SetResourceTenantName(value *string)() { + err := m.GetBackingStore().Set("resourceTenantName", value) + if err != nil { + panic(err) + } +} +// SetResourceTenantPrimaryDomain sets the resourceTenantPrimaryDomain property value. The resourceTenantPrimaryDomain property +func (m *CrossTenantAccess) SetResourceTenantPrimaryDomain(value *string)() { + err := m.GetBackingStore().Set("resourceTenantPrimaryDomain", value) + if err != nil { + panic(err) + } +} +// SetUsageStatus sets the usageStatus property value. The usageStatus property +func (m *CrossTenantAccess) SetUsageStatus(value *UsageStatus)() { + err := m.GetBackingStore().Set("usageStatus", value) + if err != nil { + panic(err) + } +} +// SetUserCount sets the userCount property value. The userCount property +func (m *CrossTenantAccess) SetUserCount(value *int64)() { + err := m.GetBackingStore().Set("userCount", value) + if err != nil { + panic(err) + } +} +// CrossTenantAccessable +type CrossTenantAccessable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDeviceCount()(*int64) + GetLastAccessDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) + GetResourceTenantId()(*string) + GetResourceTenantName()(*string) + GetResourceTenantPrimaryDomain()(*string) + GetUsageStatus()(*UsageStatus) + GetUserCount()(*int64) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDeviceCount(value *int64)() + SetLastAccessDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() + SetResourceTenantId(value *string)() + SetResourceTenantName(value *string)() + SetResourceTenantPrimaryDomain(value *string)() + SetUsageStatus(value *UsageStatus)() + SetUserCount(value *int64)() +} diff --git a/models/networkaccess/cross_tenant_summary.go b/models/networkaccess/cross_tenant_summary.go index 051142766fc..6465e9e8716 100644 --- a/models/networkaccess/cross_tenant_summary.go +++ b/models/networkaccess/cross_tenant_summary.go @@ -103,6 +103,16 @@ func (m *CrossTenantSummary) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["rarelyUsedTenantCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetRarelyUsedTenantCount(val) + } + return nil + } res["tenantCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -147,6 +157,17 @@ func (m *CrossTenantSummary) GetOdataType()(*string) { } return nil } +// GetRarelyUsedTenantCount gets the rarelyUsedTenantCount property value. The rarelyUsedTenantCount property +func (m *CrossTenantSummary) GetRarelyUsedTenantCount()(*int32) { + val, err := m.GetBackingStore().Get("rarelyUsedTenantCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // GetTenantCount gets the tenantCount property value. Count of unique tenants that were accessed, that are different from the device's home tenant, in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) GetTenantCount()(*int32) { val, err := m.GetBackingStore().Get("tenantCount") @@ -195,6 +216,12 @@ func (m *CrossTenantSummary) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err := writer.WriteInt32Value("rarelyUsedTenantCount", m.GetRarelyUsedTenantCount()) + if err != nil { + return err + } + } { err := writer.WriteInt32Value("tenantCount", m.GetTenantCount()) if err != nil { @@ -254,6 +281,13 @@ func (m *CrossTenantSummary) SetOdataType(value *string)() { panic(err) } } +// SetRarelyUsedTenantCount sets the rarelyUsedTenantCount property value. The rarelyUsedTenantCount property +func (m *CrossTenantSummary) SetRarelyUsedTenantCount(value *int32)() { + err := m.GetBackingStore().Set("rarelyUsedTenantCount", value) + if err != nil { + panic(err) + } +} // SetTenantCount sets the tenantCount property value. Count of unique tenants that were accessed, that are different from the device's home tenant, in the time frame between startDateTime and endDateTime. func (m *CrossTenantSummary) SetTenantCount(value *int32)() { err := m.GetBackingStore().Set("tenantCount", value) @@ -278,6 +312,7 @@ type CrossTenantSummaryable interface { GetDeviceCount()(*int32) GetNewTenantCount()(*int32) GetOdataType()(*string) + GetRarelyUsedTenantCount()(*int32) GetTenantCount()(*int32) GetUserCount()(*int32) SetAuthTransactionCount(value *int32)() @@ -285,6 +320,7 @@ type CrossTenantSummaryable interface { SetDeviceCount(value *int32)() SetNewTenantCount(value *int32)() SetOdataType(value *string)() + SetRarelyUsedTenantCount(value *int32)() SetTenantCount(value *int32)() SetUserCount(value *int32)() } diff --git a/models/networkaccess/destination.go b/models/networkaccess/destination.go new file mode 100644 index 00000000000..75b1f8bf0f4 --- /dev/null +++ b/models/networkaccess/destination.go @@ -0,0 +1,329 @@ +package networkaccess + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// Destination +type Destination struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDestination instantiates a new destination and sets the default values. +func NewDestination()(*Destination) { + m := &Destination{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDestinationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateDestinationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDestination(), 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. +func (m *Destination) 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. +func (m *Destination) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *Destination) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["fqdn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFqdn(val) + } + return nil + } + res["ip"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetIp(val) + } + return nil + } + res["lastAccessDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastAccessDateTime(val) + } + return nil + } + res["networkingProtocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseNetworkingProtocol) + if err != nil { + return err + } + if val != nil { + m.SetNetworkingProtocol(val.(*NetworkingProtocol)) + } + 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["port"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetPort(val) + } + return nil + } + res["trafficType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTrafficType) + if err != nil { + return err + } + if val != nil { + m.SetTrafficType(val.(*TrafficType)) + } + return nil + } + return res +} +// GetFqdn gets the fqdn property value. The fqdn property +func (m *Destination) GetFqdn()(*string) { + val, err := m.GetBackingStore().Get("fqdn") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetIp gets the ip property value. The ip property +func (m *Destination) GetIp()(*string) { + val, err := m.GetBackingStore().Get("ip") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetLastAccessDateTime gets the lastAccessDateTime property value. The lastAccessDateTime property +func (m *Destination) GetLastAccessDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastAccessDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetNetworkingProtocol gets the networkingProtocol property value. The networkingProtocol property +func (m *Destination) GetNetworkingProtocol()(*NetworkingProtocol) { + val, err := m.GetBackingStore().Get("networkingProtocol") + if err != nil { + panic(err) + } + if val != nil { + return val.(*NetworkingProtocol) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Destination) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPort gets the port property value. The port property +func (m *Destination) GetPort()(*int32) { + val, err := m.GetBackingStore().Get("port") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetTrafficType gets the trafficType property value. The trafficType property +func (m *Destination) GetTrafficType()(*TrafficType) { + val, err := m.GetBackingStore().Get("trafficType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TrafficType) + } + return nil +} +// Serialize serializes information the current object +func (m *Destination) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("fqdn", m.GetFqdn()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("ip", m.GetIp()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastAccessDateTime", m.GetLastAccessDateTime()) + if err != nil { + return err + } + } + if m.GetNetworkingProtocol() != nil { + cast := (*m.GetNetworkingProtocol()).String() + err := writer.WriteStringValue("networkingProtocol", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteInt32Value("port", m.GetPort()) + if err != nil { + return err + } + } + if m.GetTrafficType() != nil { + cast := (*m.GetTrafficType()).String() + err := writer.WriteStringValue("trafficType", &cast) + 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 *Destination) 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 *Destination) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetFqdn sets the fqdn property value. The fqdn property +func (m *Destination) SetFqdn(value *string)() { + err := m.GetBackingStore().Set("fqdn", value) + if err != nil { + panic(err) + } +} +// SetIp sets the ip property value. The ip property +func (m *Destination) SetIp(value *string)() { + err := m.GetBackingStore().Set("ip", value) + if err != nil { + panic(err) + } +} +// SetLastAccessDateTime sets the lastAccessDateTime property value. The lastAccessDateTime property +func (m *Destination) SetLastAccessDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastAccessDateTime", value) + if err != nil { + panic(err) + } +} +// SetNetworkingProtocol sets the networkingProtocol property value. The networkingProtocol property +func (m *Destination) SetNetworkingProtocol(value *NetworkingProtocol)() { + err := m.GetBackingStore().Set("networkingProtocol", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Destination) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPort sets the port property value. The port property +func (m *Destination) SetPort(value *int32)() { + err := m.GetBackingStore().Set("port", value) + if err != nil { + panic(err) + } +} +// SetTrafficType sets the trafficType property value. The trafficType property +func (m *Destination) SetTrafficType(value *TrafficType)() { + err := m.GetBackingStore().Set("trafficType", value) + if err != nil { + panic(err) + } +} +// Destinationable +type Destinationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetFqdn()(*string) + GetIp()(*string) + GetLastAccessDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetNetworkingProtocol()(*NetworkingProtocol) + GetOdataType()(*string) + GetPort()(*int32) + GetTrafficType()(*TrafficType) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetFqdn(value *string)() + SetIp(value *string)() + SetLastAccessDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetNetworkingProtocol(value *NetworkingProtocol)() + SetOdataType(value *string)() + SetPort(value *int32)() + SetTrafficType(value *TrafficType)() +} diff --git a/models/networkaccess/device.go b/models/networkaccess/device.go new file mode 100644 index 00000000000..ff3a8a70389 --- /dev/null +++ b/models/networkaccess/device.go @@ -0,0 +1,328 @@ +package networkaccess + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// Device +type Device struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDevice instantiates a new device and sets the default values. +func NewDevice()(*Device) { + m := &Device{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDeviceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateDeviceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDevice(), 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. +func (m *Device) 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. +func (m *Device) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDeviceId gets the deviceId property value. The deviceId property +func (m *Device) GetDeviceId()(*string) { + val, err := m.GetBackingStore().Get("deviceId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName property +func (m *Device) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *Device) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["deviceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceId(val) + } + return nil + } + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["isCompliant"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCompliant(val) + } + return nil + } + res["lastAccessDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastAccessDateTime(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["operatingSystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOperatingSystem(val) + } + return nil + } + res["trafficType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTrafficType) + if err != nil { + return err + } + if val != nil { + m.SetTrafficType(val.(*TrafficType)) + } + return nil + } + return res +} +// GetIsCompliant gets the isCompliant property value. The isCompliant property +func (m *Device) GetIsCompliant()(*bool) { + val, err := m.GetBackingStore().Get("isCompliant") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetLastAccessDateTime gets the lastAccessDateTime property value. The lastAccessDateTime property +func (m *Device) GetLastAccessDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastAccessDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *Device) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOperatingSystem gets the operatingSystem property value. The operatingSystem property +func (m *Device) GetOperatingSystem()(*string) { + val, err := m.GetBackingStore().Get("operatingSystem") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTrafficType gets the trafficType property value. The trafficType property +func (m *Device) GetTrafficType()(*TrafficType) { + val, err := m.GetBackingStore().Get("trafficType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TrafficType) + } + return nil +} +// Serialize serializes information the current object +func (m *Device) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("deviceId", m.GetDeviceId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isCompliant", m.GetIsCompliant()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastAccessDateTime", m.GetLastAccessDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("operatingSystem", m.GetOperatingSystem()) + if err != nil { + return err + } + } + if m.GetTrafficType() != nil { + cast := (*m.GetTrafficType()).String() + err := writer.WriteStringValue("trafficType", &cast) + 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 *Device) 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 *Device) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDeviceId sets the deviceId property value. The deviceId property +func (m *Device) SetDeviceId(value *string)() { + err := m.GetBackingStore().Set("deviceId", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *Device) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetIsCompliant sets the isCompliant property value. The isCompliant property +func (m *Device) SetIsCompliant(value *bool)() { + err := m.GetBackingStore().Set("isCompliant", value) + if err != nil { + panic(err) + } +} +// SetLastAccessDateTime sets the lastAccessDateTime property value. The lastAccessDateTime property +func (m *Device) SetLastAccessDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastAccessDateTime", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *Device) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetOperatingSystem sets the operatingSystem property value. The operatingSystem property +func (m *Device) SetOperatingSystem(value *string)() { + err := m.GetBackingStore().Set("operatingSystem", value) + if err != nil { + panic(err) + } +} +// SetTrafficType sets the trafficType property value. The trafficType property +func (m *Device) SetTrafficType(value *TrafficType)() { + err := m.GetBackingStore().Set("trafficType", value) + if err != nil { + panic(err) + } +} +// Deviceable +type Deviceable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDeviceId()(*string) + GetDisplayName()(*string) + GetIsCompliant()(*bool) + GetLastAccessDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) + GetOperatingSystem()(*string) + GetTrafficType()(*TrafficType) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDeviceId(value *string)() + SetDisplayName(value *string)() + SetIsCompliant(value *bool)() + SetLastAccessDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() + SetOperatingSystem(value *string)() + SetTrafficType(value *TrafficType)() +} diff --git a/models/networkaccess/network_access_traffic.go b/models/networkaccess/network_access_traffic.go index 4933af6b602..15129e77ec5 100644 --- a/models/networkaccess/network_access_traffic.go +++ b/models/networkaccess/network_access_traffic.go @@ -252,6 +252,26 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["filteringProfileId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilteringProfileId(val) + } + return nil + } + res["filteringProfileName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetFilteringProfileName(val) + } + return nil + } res["headers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateHeadersFromDiscriminatorValue) if err != nil { @@ -262,6 +282,16 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["initiatingProcessName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetInitiatingProcessName(val) + } + return nil + } res["networkProtocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseNetworkingProtocol) if err != nil { @@ -292,6 +322,16 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["policyName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicyName(val) + } + return nil + } res["policyRuleId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -302,6 +342,16 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["policyRuleName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPolicyRuleName(val) + } + return nil + } res["receivedBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt64Value() if err != nil { @@ -312,6 +362,16 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["resourceTenantId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceTenantId(val) + } + return nil + } res["sentBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt64Value() if err != nil { @@ -414,6 +474,28 @@ func (m *NetworkAccessTraffic) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } +// GetFilteringProfileId gets the filteringProfileId property value. The filteringProfileId property +func (m *NetworkAccessTraffic) GetFilteringProfileId()(*string) { + val, err := m.GetBackingStore().Get("filteringProfileId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFilteringProfileName gets the filteringProfileName property value. The filteringProfileName property +func (m *NetworkAccessTraffic) GetFilteringProfileName()(*string) { + val, err := m.GetBackingStore().Get("filteringProfileName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetHeaders gets the headers property value. Represents the headers included in a network request or response. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetHeaders()(Headersable) { val, err := m.GetBackingStore().Get("headers") @@ -425,6 +507,17 @@ func (m *NetworkAccessTraffic) GetHeaders()(Headersable) { } return nil } +// GetInitiatingProcessName gets the initiatingProcessName property value. The initiatingProcessName property +func (m *NetworkAccessTraffic) GetInitiatingProcessName()(*string) { + val, err := m.GetBackingStore().Get("initiatingProcessName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetNetworkProtocol gets the networkProtocol property value. Represents the networking protocol used for communication.The possible values are: ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII, unknownFutureValue. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetNetworkProtocol()(*NetworkingProtocol) { val, err := m.GetBackingStore().Get("networkProtocol") @@ -458,6 +551,17 @@ func (m *NetworkAccessTraffic) GetPolicyId()(*string) { } return nil } +// GetPolicyName gets the policyName property value. The policyName property +func (m *NetworkAccessTraffic) GetPolicyName()(*string) { + val, err := m.GetBackingStore().Get("policyName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetPolicyRuleId gets the policyRuleId property value. Represents a unique identifier assigned to a policy rule. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetPolicyRuleId()(*string) { val, err := m.GetBackingStore().Get("policyRuleId") @@ -469,6 +573,17 @@ func (m *NetworkAccessTraffic) GetPolicyRuleId()(*string) { } return nil } +// GetPolicyRuleName gets the policyRuleName property value. The policyRuleName property +func (m *NetworkAccessTraffic) GetPolicyRuleName()(*string) { + val, err := m.GetBackingStore().Get("policyRuleName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetReceivedBytes gets the receivedBytes property value. Represents the total number of bytes received in a network communication or data transfer. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetReceivedBytes()(*int64) { val, err := m.GetBackingStore().Get("receivedBytes") @@ -480,6 +595,17 @@ func (m *NetworkAccessTraffic) GetReceivedBytes()(*int64) { } return nil } +// GetResourceTenantId gets the resourceTenantId property value. The resourceTenantId property +func (m *NetworkAccessTraffic) GetResourceTenantId()(*string) { + val, err := m.GetBackingStore().Get("resourceTenantId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSentBytes gets the sentBytes property value. Represents the total number of bytes sent in a network communication or data transfer. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) GetSentBytes()(*int64) { val, err := m.GetBackingStore().Get("sentBytes") @@ -653,12 +779,30 @@ func (m *NetworkAccessTraffic) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err := writer.WriteStringValue("filteringProfileId", m.GetFilteringProfileId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("filteringProfileName", m.GetFilteringProfileName()) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("headers", m.GetHeaders()) if err != nil { return err } } + { + err := writer.WriteStringValue("initiatingProcessName", m.GetInitiatingProcessName()) + if err != nil { + return err + } + } if m.GetNetworkProtocol() != nil { cast := (*m.GetNetworkProtocol()).String() err := writer.WriteStringValue("networkProtocol", &cast) @@ -678,18 +822,36 @@ func (m *NetworkAccessTraffic) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err := writer.WriteStringValue("policyName", m.GetPolicyName()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("policyRuleId", m.GetPolicyRuleId()) if err != nil { return err } } + { + err := writer.WriteStringValue("policyRuleName", m.GetPolicyRuleName()) + if err != nil { + return err + } + } { err := writer.WriteInt64Value("receivedBytes", m.GetReceivedBytes()) if err != nil { return err } } + { + err := writer.WriteStringValue("resourceTenantId", m.GetResourceTenantId()) + if err != nil { + return err + } + } { err := writer.WriteInt64Value("sentBytes", m.GetSentBytes()) if err != nil { @@ -841,6 +1003,20 @@ func (m *NetworkAccessTraffic) SetDeviceOperatingSystemVersion(value *string)() panic(err) } } +// SetFilteringProfileId sets the filteringProfileId property value. The filteringProfileId property +func (m *NetworkAccessTraffic) SetFilteringProfileId(value *string)() { + err := m.GetBackingStore().Set("filteringProfileId", value) + if err != nil { + panic(err) + } +} +// SetFilteringProfileName sets the filteringProfileName property value. The filteringProfileName property +func (m *NetworkAccessTraffic) SetFilteringProfileName(value *string)() { + err := m.GetBackingStore().Set("filteringProfileName", value) + if err != nil { + panic(err) + } +} // SetHeaders sets the headers property value. Represents the headers included in a network request or response. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetHeaders(value Headersable)() { err := m.GetBackingStore().Set("headers", value) @@ -848,6 +1024,13 @@ func (m *NetworkAccessTraffic) SetHeaders(value Headersable)() { panic(err) } } +// SetInitiatingProcessName sets the initiatingProcessName property value. The initiatingProcessName property +func (m *NetworkAccessTraffic) SetInitiatingProcessName(value *string)() { + err := m.GetBackingStore().Set("initiatingProcessName", value) + if err != nil { + panic(err) + } +} // SetNetworkProtocol sets the networkProtocol property value. Represents the networking protocol used for communication.The possible values are: ip, icmp, igmp, ggp, ipv4, tcp, pup, udp, idp, ipv6, ipv6RoutingHeader, ipv6FragmentHeader, ipSecEncapsulatingSecurityPayload, ipSecAuthenticationHeader, icmpV6, ipv6NoNextHeader, ipv6DestinationOptions, nd, raw, ipx, spx, spxII, unknownFutureValue. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetNetworkProtocol(value *NetworkingProtocol)() { err := m.GetBackingStore().Set("networkProtocol", value) @@ -869,6 +1052,13 @@ func (m *NetworkAccessTraffic) SetPolicyId(value *string)() { panic(err) } } +// SetPolicyName sets the policyName property value. The policyName property +func (m *NetworkAccessTraffic) SetPolicyName(value *string)() { + err := m.GetBackingStore().Set("policyName", value) + if err != nil { + panic(err) + } +} // SetPolicyRuleId sets the policyRuleId property value. Represents a unique identifier assigned to a policy rule. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetPolicyRuleId(value *string)() { err := m.GetBackingStore().Set("policyRuleId", value) @@ -876,6 +1066,13 @@ func (m *NetworkAccessTraffic) SetPolicyRuleId(value *string)() { panic(err) } } +// SetPolicyRuleName sets the policyRuleName property value. The policyRuleName property +func (m *NetworkAccessTraffic) SetPolicyRuleName(value *string)() { + err := m.GetBackingStore().Set("policyRuleName", value) + if err != nil { + panic(err) + } +} // SetReceivedBytes sets the receivedBytes property value. Represents the total number of bytes received in a network communication or data transfer. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetReceivedBytes(value *int64)() { err := m.GetBackingStore().Set("receivedBytes", value) @@ -883,6 +1080,13 @@ func (m *NetworkAccessTraffic) SetReceivedBytes(value *int64)() { panic(err) } } +// SetResourceTenantId sets the resourceTenantId property value. The resourceTenantId property +func (m *NetworkAccessTraffic) SetResourceTenantId(value *string)() { + err := m.GetBackingStore().Set("resourceTenantId", value) + if err != nil { + panic(err) + } +} // SetSentBytes sets the sentBytes property value. Represents the total number of bytes sent in a network communication or data transfer. Supports $filter (eq) and $orderby. func (m *NetworkAccessTraffic) SetSentBytes(value *int64)() { err := m.GetBackingStore().Set("sentBytes", value) @@ -969,12 +1173,18 @@ type NetworkAccessTrafficable interface { GetDeviceId()(*string) GetDeviceOperatingSystem()(*string) GetDeviceOperatingSystemVersion()(*string) + GetFilteringProfileId()(*string) + GetFilteringProfileName()(*string) GetHeaders()(Headersable) + GetInitiatingProcessName()(*string) GetNetworkProtocol()(*NetworkingProtocol) GetOdataType()(*string) GetPolicyId()(*string) + GetPolicyName()(*string) GetPolicyRuleId()(*string) + GetPolicyRuleName()(*string) GetReceivedBytes()(*int64) + GetResourceTenantId()(*string) GetSentBytes()(*int64) GetSessionId()(*string) GetSourceIp()(*string) @@ -996,12 +1206,18 @@ type NetworkAccessTrafficable interface { SetDeviceId(value *string)() SetDeviceOperatingSystem(value *string)() SetDeviceOperatingSystemVersion(value *string)() + SetFilteringProfileId(value *string)() + SetFilteringProfileName(value *string)() SetHeaders(value Headersable)() + SetInitiatingProcessName(value *string)() SetNetworkProtocol(value *NetworkingProtocol)() SetOdataType(value *string)() SetPolicyId(value *string)() + SetPolicyName(value *string)() SetPolicyRuleId(value *string)() + SetPolicyRuleName(value *string)() SetReceivedBytes(value *int64)() + SetResourceTenantId(value *string)() SetSentBytes(value *int64)() SetSessionId(value *string)() SetSourceIp(value *string)() diff --git a/models/networkaccess/traffic_distribution_point.go b/models/networkaccess/traffic_distribution_point.go new file mode 100644 index 00000000000..c815f871160 --- /dev/null +++ b/models/networkaccess/traffic_distribution_point.go @@ -0,0 +1,291 @@ +package networkaccess + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// TrafficDistributionPoint +type TrafficDistributionPoint struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewTrafficDistributionPoint instantiates a new trafficDistributionPoint and sets the default values. +func NewTrafficDistributionPoint()(*TrafficDistributionPoint) { + m := &TrafficDistributionPoint{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateTrafficDistributionPointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateTrafficDistributionPointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewTrafficDistributionPoint(), 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. +func (m *TrafficDistributionPoint) 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. +func (m *TrafficDistributionPoint) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +func (m *TrafficDistributionPoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["internetAccessTrafficCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetInternetAccessTrafficCount(val) + } + return nil + } + res["microsoft365AccessTrafficCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetMicrosoft365AccessTrafficCount(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["privateAccessTrafficCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetPrivateAccessTrafficCount(val) + } + return nil + } + res["timeStampDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetTimeStampDateTime(val) + } + return nil + } + res["totalTrafficCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetTotalTrafficCount(val) + } + return nil + } + return res +} +// GetInternetAccessTrafficCount gets the internetAccessTrafficCount property value. The internetAccessTrafficCount property +func (m *TrafficDistributionPoint) GetInternetAccessTrafficCount()(*int64) { + val, err := m.GetBackingStore().Get("internetAccessTrafficCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetMicrosoft365AccessTrafficCount gets the microsoft365AccessTrafficCount property value. The microsoft365AccessTrafficCount property +func (m *TrafficDistributionPoint) GetMicrosoft365AccessTrafficCount()(*int64) { + val, err := m.GetBackingStore().Get("microsoft365AccessTrafficCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *TrafficDistributionPoint) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPrivateAccessTrafficCount gets the privateAccessTrafficCount property value. The privateAccessTrafficCount property +func (m *TrafficDistributionPoint) GetPrivateAccessTrafficCount()(*int64) { + val, err := m.GetBackingStore().Get("privateAccessTrafficCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetTimeStampDateTime gets the timeStampDateTime property value. The timeStampDateTime property +func (m *TrafficDistributionPoint) GetTimeStampDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("timeStampDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetTotalTrafficCount gets the totalTrafficCount property value. The totalTrafficCount property +func (m *TrafficDistributionPoint) GetTotalTrafficCount()(*int64) { + val, err := m.GetBackingStore().Get("totalTrafficCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *TrafficDistributionPoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt64Value("internetAccessTrafficCount", m.GetInternetAccessTrafficCount()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("microsoft365AccessTrafficCount", m.GetMicrosoft365AccessTrafficCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("privateAccessTrafficCount", m.GetPrivateAccessTrafficCount()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("timeStampDateTime", m.GetTimeStampDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("totalTrafficCount", m.GetTotalTrafficCount()) + 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 *TrafficDistributionPoint) 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 *TrafficDistributionPoint) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetInternetAccessTrafficCount sets the internetAccessTrafficCount property value. The internetAccessTrafficCount property +func (m *TrafficDistributionPoint) SetInternetAccessTrafficCount(value *int64)() { + err := m.GetBackingStore().Set("internetAccessTrafficCount", value) + if err != nil { + panic(err) + } +} +// SetMicrosoft365AccessTrafficCount sets the microsoft365AccessTrafficCount property value. The microsoft365AccessTrafficCount property +func (m *TrafficDistributionPoint) SetMicrosoft365AccessTrafficCount(value *int64)() { + err := m.GetBackingStore().Set("microsoft365AccessTrafficCount", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *TrafficDistributionPoint) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPrivateAccessTrafficCount sets the privateAccessTrafficCount property value. The privateAccessTrafficCount property +func (m *TrafficDistributionPoint) SetPrivateAccessTrafficCount(value *int64)() { + err := m.GetBackingStore().Set("privateAccessTrafficCount", value) + if err != nil { + panic(err) + } +} +// SetTimeStampDateTime sets the timeStampDateTime property value. The timeStampDateTime property +func (m *TrafficDistributionPoint) SetTimeStampDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("timeStampDateTime", value) + if err != nil { + panic(err) + } +} +// SetTotalTrafficCount sets the totalTrafficCount property value. The totalTrafficCount property +func (m *TrafficDistributionPoint) SetTotalTrafficCount(value *int64)() { + err := m.GetBackingStore().Set("totalTrafficCount", value) + if err != nil { + panic(err) + } +} +// TrafficDistributionPointable +type TrafficDistributionPointable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetInternetAccessTrafficCount()(*int64) + GetMicrosoft365AccessTrafficCount()(*int64) + GetOdataType()(*string) + GetPrivateAccessTrafficCount()(*int64) + GetTimeStampDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetTotalTrafficCount()(*int64) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetInternetAccessTrafficCount(value *int64)() + SetMicrosoft365AccessTrafficCount(value *int64)() + SetOdataType(value *string)() + SetPrivateAccessTrafficCount(value *int64)() + SetTimeStampDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetTotalTrafficCount(value *int64)() +} diff --git a/models/networkaccess/usage_status.go b/models/networkaccess/usage_status.go new file mode 100644 index 00000000000..f2815b13a06 --- /dev/null +++ b/models/networkaccess/usage_status.go @@ -0,0 +1,40 @@ +package networkaccess +import ( + "errors" +) +// +type UsageStatus int + +const ( + FREQUENTLYUSED_USAGESTATUS UsageStatus = iota + RARELYUSED_USAGESTATUS + UNKNOWNFUTUREVALUE_USAGESTATUS +) + +func (i UsageStatus) String() string { + return []string{"frequentlyUsed", "rarelyUsed", "unknownFutureValue"}[i] +} +func ParseUsageStatus(v string) (any, error) { + result := FREQUENTLYUSED_USAGESTATUS + switch v { + case "frequentlyUsed": + result = FREQUENTLYUSED_USAGESTATUS + case "rarelyUsed": + result = RARELYUSED_USAGESTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_USAGESTATUS + default: + return 0, errors.New("Unknown UsageStatus value: " + v) + } + return &result, nil +} +func SerializeUsageStatus(values []UsageStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i UsageStatus) isMultiValue() bool { + return false +} diff --git a/models/networkaccess/user.go b/models/networkaccess/user.go new file mode 100644 index 00000000000..908a18f6fc0 --- /dev/null +++ b/models/networkaccess/user.go @@ -0,0 +1,329 @@ +package networkaccess + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// User +type User struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewUser instantiates a new user and sets the default values. +func NewUser()(*User) { + m := &User{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateUserFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateUserFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUser(), 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. +func (m *User) 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. +func (m *User) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDisplayName gets the displayName property value. The displayName property +func (m *User) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *User) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["lastAccessDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastAccessDateTime(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["trafficType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseTrafficType) + if err != nil { + return err + } + if val != nil { + m.SetTrafficType(val.(*TrafficType)) + } + return nil + } + res["userId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserId(val) + } + return nil + } + res["userPrincipalName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserPrincipalName(val) + } + return nil + } + res["userType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseUserType) + if err != nil { + return err + } + if val != nil { + m.SetUserType(val.(*UserType)) + } + return nil + } + return res +} +// GetLastAccessDateTime gets the lastAccessDateTime property value. The lastAccessDateTime property +func (m *User) GetLastAccessDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastAccessDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *User) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTrafficType gets the trafficType property value. The trafficType property +func (m *User) GetTrafficType()(*TrafficType) { + val, err := m.GetBackingStore().Get("trafficType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*TrafficType) + } + return nil +} +// GetUserId gets the userId property value. The userId property +func (m *User) GetUserId()(*string) { + val, err := m.GetBackingStore().Get("userId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUserPrincipalName gets the userPrincipalName property value. The userPrincipalName property +func (m *User) GetUserPrincipalName()(*string) { + val, err := m.GetBackingStore().Get("userPrincipalName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUserType gets the userType property value. The userType property +func (m *User) GetUserType()(*UserType) { + val, err := m.GetBackingStore().Get("userType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*UserType) + } + return nil +} +// Serialize serializes information the current object +func (m *User) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err := writer.WriteTimeValue("lastAccessDateTime", m.GetLastAccessDateTime()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetTrafficType() != nil { + cast := (*m.GetTrafficType()).String() + err := writer.WriteStringValue("trafficType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userId", m.GetUserId()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("userPrincipalName", m.GetUserPrincipalName()) + if err != nil { + return err + } + } + if m.GetUserType() != nil { + cast := (*m.GetUserType()).String() + err := writer.WriteStringValue("userType", &cast) + 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 *User) 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 *User) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *User) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetLastAccessDateTime sets the lastAccessDateTime property value. The lastAccessDateTime property +func (m *User) SetLastAccessDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastAccessDateTime", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *User) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetTrafficType sets the trafficType property value. The trafficType property +func (m *User) SetTrafficType(value *TrafficType)() { + err := m.GetBackingStore().Set("trafficType", value) + if err != nil { + panic(err) + } +} +// SetUserId sets the userId property value. The userId property +func (m *User) SetUserId(value *string)() { + err := m.GetBackingStore().Set("userId", value) + if err != nil { + panic(err) + } +} +// SetUserPrincipalName sets the userPrincipalName property value. The userPrincipalName property +func (m *User) SetUserPrincipalName(value *string)() { + err := m.GetBackingStore().Set("userPrincipalName", value) + if err != nil { + panic(err) + } +} +// SetUserType sets the userType property value. The userType property +func (m *User) SetUserType(value *UserType)() { + err := m.GetBackingStore().Set("userType", value) + if err != nil { + panic(err) + } +} +// Userable +type Userable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDisplayName()(*string) + GetLastAccessDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOdataType()(*string) + GetTrafficType()(*TrafficType) + GetUserId()(*string) + GetUserPrincipalName()(*string) + GetUserType()(*UserType) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDisplayName(value *string)() + SetLastAccessDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOdataType(value *string)() + SetTrafficType(value *TrafficType)() + SetUserId(value *string)() + SetUserPrincipalName(value *string)() + SetUserType(value *UserType)() +} diff --git a/models/networkaccess/user_type.go b/models/networkaccess/user_type.go new file mode 100644 index 00000000000..9cf83b57a96 --- /dev/null +++ b/models/networkaccess/user_type.go @@ -0,0 +1,40 @@ +package networkaccess +import ( + "errors" +) +// +type UserType int + +const ( + MEMBER_USERTYPE UserType = iota + GUEST_USERTYPE + UNKNOWNFUTUREVALUE_USERTYPE +) + +func (i UserType) String() string { + return []string{"member", "guest", "unknownFutureValue"}[i] +} +func ParseUserType(v string) (any, error) { + result := MEMBER_USERTYPE + switch v { + case "member": + result = MEMBER_USERTYPE + case "guest": + result = GUEST_USERTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_USERTYPE + default: + return 0, errors.New("Unknown UserType value: " + v) + } + return &result, nil +} +func SerializeUserType(values []UserType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i UserType) isMultiValue() bool { + return false +} diff --git a/models/networkaccess/web_categories_summary.go b/models/networkaccess/web_categories_summary.go new file mode 100644 index 00000000000..3d1edc81c22 --- /dev/null +++ b/models/networkaccess/web_categories_summary.go @@ -0,0 +1,218 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +// WebCategoriesSummary +type WebCategoriesSummary struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewWebCategoriesSummary instantiates a new webCategoriesSummary and sets the default values. +func NewWebCategoriesSummary()(*WebCategoriesSummary) { + m := &WebCategoriesSummary{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateWebCategoriesSummaryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateWebCategoriesSummaryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWebCategoriesSummary(), 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. +func (m *WebCategoriesSummary) 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. +func (m *WebCategoriesSummary) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetDeviceCount gets the deviceCount property value. The deviceCount property +func (m *WebCategoriesSummary) GetDeviceCount()(*int64) { + val, err := m.GetBackingStore().Get("deviceCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *WebCategoriesSummary) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["deviceCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetDeviceCount(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["transactionCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetTransactionCount(val) + } + return nil + } + res["userCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetUserCount(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +func (m *WebCategoriesSummary) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTransactionCount gets the transactionCount property value. The transactionCount property +func (m *WebCategoriesSummary) GetTransactionCount()(*int64) { + val, err := m.GetBackingStore().Get("transactionCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetUserCount gets the userCount property value. The userCount property +func (m *WebCategoriesSummary) GetUserCount()(*int64) { + val, err := m.GetBackingStore().Get("userCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *WebCategoriesSummary) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt64Value("deviceCount", m.GetDeviceCount()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("transactionCount", m.GetTransactionCount()) + if err != nil { + return err + } + } + { + err := writer.WriteInt64Value("userCount", m.GetUserCount()) + 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 *WebCategoriesSummary) 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 *WebCategoriesSummary) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetDeviceCount sets the deviceCount property value. The deviceCount property +func (m *WebCategoriesSummary) SetDeviceCount(value *int64)() { + err := m.GetBackingStore().Set("deviceCount", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WebCategoriesSummary) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetTransactionCount sets the transactionCount property value. The transactionCount property +func (m *WebCategoriesSummary) SetTransactionCount(value *int64)() { + err := m.GetBackingStore().Set("transactionCount", value) + if err != nil { + panic(err) + } +} +// SetUserCount sets the userCount property value. The userCount property +func (m *WebCategoriesSummary) SetUserCount(value *int64)() { + err := m.GetBackingStore().Set("userCount", value) + if err != nil { + panic(err) + } +} +// WebCategoriesSummaryable +type WebCategoriesSummaryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetDeviceCount()(*int64) + GetOdataType()(*string) + GetTransactionCount()(*int64) + GetUserCount()(*int64) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetDeviceCount(value *int64)() + SetOdataType(value *string)() + SetTransactionCount(value *int64)() + SetUserCount(value *int64)() +} diff --git a/models/privileged_access_group_assignment_schedule.go b/models/privileged_access_group_assignment_schedule.go index e893450f37b..8669d369c2f 100644 --- a/models/privileged_access_group_assignment_schedule.go +++ b/models/privileged_access_group_assignment_schedule.go @@ -21,7 +21,7 @@ func NewPrivilegedAccessGroupAssignmentSchedule()(*PrivilegedAccessGroupAssignme func CreatePrivilegedAccessGroupAssignmentScheduleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPrivilegedAccessGroupAssignmentSchedule(), nil } -// GetAccessId gets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. +// GetAccessId gets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) GetAccessId()(*PrivilegedAccessGroupRelationships) { val, err := m.GetBackingStore().Get("accessId") if err != nil { @@ -43,7 +43,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetActivatedUsing()(Privileged } return nil } -// GetAssignmentType gets the assignmentType property value. Indicates whether the membership or ownership assignment for the principal is granted through activation or direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. +// GetAssignmentType gets the assignmentType property value. Indicates whether the membership or ownership assignment for the principal is granted through activation or direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) GetAssignmentType()(*PrivilegedAccessGroupAssignmentType) { val, err := m.GetBackingStore().Get("assignmentType") if err != nil { @@ -150,7 +150,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetGroup()(Groupable) { } return nil } -// GetGroupId gets the groupId property value. The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Required. +// GetGroupId gets the groupId property value. The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) GetGroupId()(*string) { val, err := m.GetBackingStore().Get("groupId") if err != nil { @@ -161,7 +161,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetGroupId()(*string) { } return nil } -// GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a direct group assignment or through a transitive assignment. The possible values are: direct, group, unknownFutureValue. +// GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a direct group assignment or through a transitive assignment. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) GetMemberType()(*PrivilegedAccessGroupMemberType) { val, err := m.GetBackingStore().Get("memberType") if err != nil { @@ -183,7 +183,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) GetPrincipal()(DirectoryObject } return nil } -// GetPrincipalId gets the principalId property value. The identifier of the principal whose membership or ownership assignment is granted through PIM for groups. Required. +// GetPrincipalId gets the principalId property value. The identifier of the principal whose membership or ownership assignment is granted through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) GetPrincipalId()(*string) { val, err := m.GetBackingStore().Get("principalId") if err != nil { @@ -253,7 +253,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) Serialize(writer i878a80d2330e } return nil } -// SetAccessId sets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. +// SetAccessId sets the accessId property value. The identifier of the membership or ownership assignment to the group that is governed by PIM. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) SetAccessId(value *PrivilegedAccessGroupRelationships)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { @@ -267,7 +267,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) SetActivatedUsing(value Privil panic(err) } } -// SetAssignmentType sets the assignmentType property value. Indicates whether the membership or ownership assignment for the principal is granted through activation or direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. +// SetAssignmentType sets the assignmentType property value. Indicates whether the membership or ownership assignment for the principal is granted through activation or direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) SetAssignmentType(value *PrivilegedAccessGroupAssignmentType)() { err := m.GetBackingStore().Set("assignmentType", value) if err != nil { @@ -281,14 +281,14 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) SetGroup(value Groupable)() { panic(err) } } -// SetGroupId sets the groupId property value. The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Required. +// SetGroupId sets the groupId property value. The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) SetGroupId(value *string)() { err := m.GetBackingStore().Set("groupId", value) if err != nil { panic(err) } } -// SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a direct group assignment or through a transitive assignment. The possible values are: direct, group, unknownFutureValue. +// SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a direct group assignment or through a transitive assignment. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) SetMemberType(value *PrivilegedAccessGroupMemberType)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { @@ -302,7 +302,7 @@ func (m *PrivilegedAccessGroupAssignmentSchedule) SetPrincipal(value DirectoryOb panic(err) } } -// SetPrincipalId sets the principalId property value. The identifier of the principal whose membership or ownership assignment is granted through PIM for groups. Required. +// SetPrincipalId sets the principalId property value. The identifier of the principal whose membership or ownership assignment is granted through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentSchedule) SetPrincipalId(value *string)() { err := m.GetBackingStore().Set("principalId", value) if err != nil { diff --git a/models/privileged_access_group_assignment_schedule_instance.go b/models/privileged_access_group_assignment_schedule_instance.go index efe394397cd..97a099f74c0 100644 --- a/models/privileged_access_group_assignment_schedule_instance.go +++ b/models/privileged_access_group_assignment_schedule_instance.go @@ -21,7 +21,7 @@ func NewPrivilegedAccessGroupAssignmentScheduleInstance()(*PrivilegedAccessGroup func CreatePrivilegedAccessGroupAssignmentScheduleInstanceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPrivilegedAccessGroupAssignmentScheduleInstance(), nil } -// GetAccessId gets the accessId property value. The identifier of the membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. +// GetAccessId gets the accessId property value. The identifier of the membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAccessId()(*PrivilegedAccessGroupRelationships) { val, err := m.GetBackingStore().Get("accessId") if err != nil { @@ -43,7 +43,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetActivatedUsing()(Pr } return nil } -// GetAssignmentScheduleId gets the assignmentScheduleId property value. The identifier of the privilegedAccessGroupAssignmentSchedule from which this instance was created. Required. +// GetAssignmentScheduleId gets the assignmentScheduleId property value. The identifier of the privilegedAccessGroupAssignmentSchedule from which this instance was created. Required. Supports $filter (eq, ne). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAssignmentScheduleId()(*string) { val, err := m.GetBackingStore().Get("assignmentScheduleId") if err != nil { @@ -54,7 +54,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAssignmentScheduleI } return nil } -// GetAssignmentType gets the assignmentType property value. Indicates whether the membership or ownership assignment is granted through activation of an eligibility or through direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. +// GetAssignmentType gets the assignmentType property value. Indicates whether the membership or ownership assignment is granted through activation of an eligibility or through direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetAssignmentType()(*PrivilegedAccessGroupAssignmentType) { val, err := m.GetBackingStore().Get("assignmentType") if err != nil { @@ -171,7 +171,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetGroup()(Groupable) } return nil } -// GetGroupId gets the groupId property value. The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Optional. +// GetGroupId gets the groupId property value. The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Optional. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetGroupId()(*string) { val, err := m.GetBackingStore().Get("groupId") if err != nil { @@ -182,7 +182,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetGroupId()(*string) } return nil } -// GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. +// GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetMemberType()(*PrivilegedAccessGroupMemberType) { val, err := m.GetBackingStore().Get("memberType") if err != nil { @@ -204,7 +204,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetPrincipal()(Directo } return nil } -// GetPrincipalId gets the principalId property value. The identifier of the principal whose membership or ownership assignment to the group is managed through PIM for groups. Required. +// GetPrincipalId gets the principalId property value. The identifier of the principal whose membership or ownership assignment to the group is managed through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) GetPrincipalId()(*string) { val, err := m.GetBackingStore().Get("principalId") if err != nil { @@ -280,7 +280,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) Serialize(writer i878a } return nil } -// SetAccessId sets the accessId property value. The identifier of the membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. +// SetAccessId sets the accessId property value. The identifier of the membership or ownership assignment relationship to the group. Required. The possible values are: owner, member, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetAccessId(value *PrivilegedAccessGroupRelationships)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { @@ -294,14 +294,14 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetActivatedUsing(valu panic(err) } } -// SetAssignmentScheduleId sets the assignmentScheduleId property value. The identifier of the privilegedAccessGroupAssignmentSchedule from which this instance was created. Required. +// SetAssignmentScheduleId sets the assignmentScheduleId property value. The identifier of the privilegedAccessGroupAssignmentSchedule from which this instance was created. Required. Supports $filter (eq, ne). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetAssignmentScheduleId(value *string)() { err := m.GetBackingStore().Set("assignmentScheduleId", value) if err != nil { panic(err) } } -// SetAssignmentType sets the assignmentType property value. Indicates whether the membership or ownership assignment is granted through activation of an eligibility or through direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. +// SetAssignmentType sets the assignmentType property value. Indicates whether the membership or ownership assignment is granted through activation of an eligibility or through direct assignment. Required. The possible values are: assigned, activated, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetAssignmentType(value *PrivilegedAccessGroupAssignmentType)() { err := m.GetBackingStore().Set("assignmentType", value) if err != nil { @@ -315,14 +315,14 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetGroup(value Groupab panic(err) } } -// SetGroupId sets the groupId property value. The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Optional. +// SetGroupId sets the groupId property value. The identifier of the group representing the scope of the membership or ownership assignment through PIM for groups. Optional. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetGroupId(value *string)() { err := m.GetBackingStore().Set("groupId", value) if err != nil { panic(err) } } -// SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. +// SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetMemberType(value *PrivilegedAccessGroupMemberType)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { @@ -336,7 +336,7 @@ func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetPrincipal(value Dir panic(err) } } -// SetPrincipalId sets the principalId property value. The identifier of the principal whose membership or ownership assignment to the group is managed through PIM for groups. Required. +// SetPrincipalId sets the principalId property value. The identifier of the principal whose membership or ownership assignment to the group is managed through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupAssignmentScheduleInstance) SetPrincipalId(value *string)() { err := m.GetBackingStore().Set("principalId", value) if err != nil { diff --git a/models/privileged_access_group_eligibility_schedule.go b/models/privileged_access_group_eligibility_schedule.go index 39f84fa5746..1ef921f956e 100644 --- a/models/privileged_access_group_eligibility_schedule.go +++ b/models/privileged_access_group_eligibility_schedule.go @@ -21,7 +21,7 @@ func NewPrivilegedAccessGroupEligibilitySchedule()(*PrivilegedAccessGroupEligibi func CreatePrivilegedAccessGroupEligibilityScheduleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPrivilegedAccessGroupEligibilitySchedule(), nil } -// GetAccessId gets the accessId property value. The identifier of the membership or ownership eligibility to the group that is governed by PIM. Required. The possible values are: owner, member. +// GetAccessId gets the accessId property value. The identifier of the membership or ownership eligibility to the group that is governed by PIM. Required. The possible values are: owner, member. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilitySchedule) GetAccessId()(*PrivilegedAccessGroupRelationships) { val, err := m.GetBackingStore().Get("accessId") if err != nil { @@ -108,7 +108,7 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) GetGroup()(Groupable) { } return nil } -// GetGroupId gets the groupId property value. The identifier of the group representing the scope of the membership or ownership eligibility through PIM for groups. Required. +// GetGroupId gets the groupId property value. The identifier of the group representing the scope of the membership or ownership eligibility through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilitySchedule) GetGroupId()(*string) { val, err := m.GetBackingStore().Get("groupId") if err != nil { @@ -119,7 +119,7 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) GetGroupId()(*string) { } return nil } -// GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the schedule. Required. The possible values are: direct, group, unknownFutureValue. +// GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilitySchedule) GetMemberType()(*PrivilegedAccessGroupMemberType) { val, err := m.GetBackingStore().Get("memberType") if err != nil { @@ -141,7 +141,7 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) GetPrincipal()(DirectoryObjec } return nil } -// GetPrincipalId gets the principalId property value. The identifier of the principal whose membership or ownership eligibility is granted through PIM for groups. Required. +// GetPrincipalId gets the principalId property value. The identifier of the principal whose membership or ownership eligibility is granted through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilitySchedule) GetPrincipalId()(*string) { val, err := m.GetBackingStore().Get("principalId") if err != nil { @@ -198,7 +198,7 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) Serialize(writer i878a80d2330 } return nil } -// SetAccessId sets the accessId property value. The identifier of the membership or ownership eligibility to the group that is governed by PIM. Required. The possible values are: owner, member. +// SetAccessId sets the accessId property value. The identifier of the membership or ownership eligibility to the group that is governed by PIM. Required. The possible values are: owner, member. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilitySchedule) SetAccessId(value *PrivilegedAccessGroupRelationships)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { @@ -212,14 +212,14 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) SetGroup(value Groupable)() { panic(err) } } -// SetGroupId sets the groupId property value. The identifier of the group representing the scope of the membership or ownership eligibility through PIM for groups. Required. +// SetGroupId sets the groupId property value. The identifier of the group representing the scope of the membership or ownership eligibility through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilitySchedule) SetGroupId(value *string)() { err := m.GetBackingStore().Set("groupId", value) if err != nil { panic(err) } } -// SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the schedule. Required. The possible values are: direct, group, unknownFutureValue. +// SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the caller can manage the schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilitySchedule) SetMemberType(value *PrivilegedAccessGroupMemberType)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { @@ -233,7 +233,7 @@ func (m *PrivilegedAccessGroupEligibilitySchedule) SetPrincipal(value DirectoryO panic(err) } } -// SetPrincipalId sets the principalId property value. The identifier of the principal whose membership or ownership eligibility is granted through PIM for groups. Required. +// SetPrincipalId sets the principalId property value. The identifier of the principal whose membership or ownership eligibility is granted through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilitySchedule) SetPrincipalId(value *string)() { err := m.GetBackingStore().Set("principalId", value) if err != nil { diff --git a/models/privileged_access_group_eligibility_schedule_instance.go b/models/privileged_access_group_eligibility_schedule_instance.go index dd9f8342900..dcdd6db90aa 100644 --- a/models/privileged_access_group_eligibility_schedule_instance.go +++ b/models/privileged_access_group_eligibility_schedule_instance.go @@ -21,7 +21,7 @@ func NewPrivilegedAccessGroupEligibilityScheduleInstance()(*PrivilegedAccessGrou func CreatePrivilegedAccessGroupEligibilityScheduleInstanceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewPrivilegedAccessGroupEligibilityScheduleInstance(), nil } -// GetAccessId gets the accessId property value. The identifier of the membership or ownership eligibility relationship to the group. Required. The possible values are: owner, member. +// GetAccessId gets the accessId property value. The identifier of the membership or ownership eligibility relationship to the group. Required. The possible values are: owner, member. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetAccessId()(*PrivilegedAccessGroupRelationships) { val, err := m.GetBackingStore().Get("accessId") if err != nil { @@ -32,7 +32,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetAccessId()(*Privil } return nil } -// GetEligibilityScheduleId gets the eligibilityScheduleId property value. The identifier of the privilegedAccessGroupEligibilitySchedule from which this instance was created. Required. +// GetEligibilityScheduleId gets the eligibilityScheduleId property value. The identifier of the privilegedAccessGroupEligibilitySchedule from which this instance was created. Required. Supports $filter (eq, ne). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetEligibilityScheduleId()(*string) { val, err := m.GetBackingStore().Get("eligibilityScheduleId") if err != nil { @@ -129,7 +129,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetGroup()(Groupable) } return nil } -// GetGroupId gets the groupId property value. The identifier of the group representing the scope of the membership or ownership eligibility through PIM for groups. Required. +// GetGroupId gets the groupId property value. The identifier of the group representing the scope of the membership or ownership eligibility through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetGroupId()(*string) { val, err := m.GetBackingStore().Get("groupId") if err != nil { @@ -140,7 +140,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetGroupId()(*string) } return nil } -// GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the calling principal can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. +// GetMemberType gets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the calling principal can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetMemberType()(*PrivilegedAccessGroupMemberType) { val, err := m.GetBackingStore().Get("memberType") if err != nil { @@ -162,7 +162,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetPrincipal()(Direct } return nil } -// GetPrincipalId gets the principalId property value. The identifier of the principal whose membership or ownership eligibility to the group is managed through PIM for groups. Required. +// GetPrincipalId gets the principalId property value. The identifier of the principal whose membership or ownership eligibility to the group is managed through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) GetPrincipalId()(*string) { val, err := m.GetBackingStore().Get("principalId") if err != nil { @@ -225,14 +225,14 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) Serialize(writer i878 } return nil } -// SetAccessId sets the accessId property value. The identifier of the membership or ownership eligibility relationship to the group. Required. The possible values are: owner, member. +// SetAccessId sets the accessId property value. The identifier of the membership or ownership eligibility relationship to the group. Required. The possible values are: owner, member. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetAccessId(value *PrivilegedAccessGroupRelationships)() { err := m.GetBackingStore().Set("accessId", value) if err != nil { panic(err) } } -// SetEligibilityScheduleId sets the eligibilityScheduleId property value. The identifier of the privilegedAccessGroupEligibilitySchedule from which this instance was created. Required. +// SetEligibilityScheduleId sets the eligibilityScheduleId property value. The identifier of the privilegedAccessGroupEligibilitySchedule from which this instance was created. Required. Supports $filter (eq, ne). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetEligibilityScheduleId(value *string)() { err := m.GetBackingStore().Set("eligibilityScheduleId", value) if err != nil { @@ -246,14 +246,14 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetGroup(value Groupa panic(err) } } -// SetGroupId sets the groupId property value. The identifier of the group representing the scope of the membership or ownership eligibility through PIM for groups. Required. +// SetGroupId sets the groupId property value. The identifier of the group representing the scope of the membership or ownership eligibility through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetGroupId(value *string)() { err := m.GetBackingStore().Set("groupId", value) if err != nil { panic(err) } } -// SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the calling principal can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. +// SetMemberType sets the memberType property value. Indicates whether the assignment is derived from a group assignment. It can further imply whether the calling principal can manage the assignment schedule. Required. The possible values are: direct, group, unknownFutureValue. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetMemberType(value *PrivilegedAccessGroupMemberType)() { err := m.GetBackingStore().Set("memberType", value) if err != nil { @@ -267,7 +267,7 @@ func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetPrincipal(value Di panic(err) } } -// SetPrincipalId sets the principalId property value. The identifier of the principal whose membership or ownership eligibility to the group is managed through PIM for groups. Required. +// SetPrincipalId sets the principalId property value. The identifier of the principal whose membership or ownership eligibility to the group is managed through PIM for groups. Required. Supports $filter (eq). func (m *PrivilegedAccessGroupEligibilityScheduleInstance) SetPrincipalId(value *string)() { err := m.GetBackingStore().Set("principalId", value) if err != nil { diff --git a/models/recommendation_base.go b/models/recommendation_base.go index 6b4c92b80ec..ddd817f0ae6 100644 --- a/models/recommendation_base.go +++ b/models/recommendation_base.go @@ -469,7 +469,7 @@ func (m *RecommendationBase) GetRecommendationType()(*RecommendationType) { } return nil } -// GetReleaseType gets the releaseType property value. The current release type of the recommendation. The possible values are: preview or generallyAvailable. +// GetReleaseType gets the releaseType property value. The current release type of the recommendation. The possible values are: preview, generallyAvailable, unknownFutureValue. func (m *RecommendationBase) GetReleaseType()(*string) { val, err := m.GetBackingStore().Get("releaseType") if err != nil { @@ -778,7 +778,7 @@ func (m *RecommendationBase) SetRecommendationType(value *RecommendationType)() panic(err) } } -// SetReleaseType sets the releaseType property value. The current release type of the recommendation. The possible values are: preview or generallyAvailable. +// SetReleaseType sets the releaseType property value. The current release type of the recommendation. The possible values are: preview, generallyAvailable, unknownFutureValue. func (m *RecommendationBase) SetReleaseType(value *string)() { err := m.GetBackingStore().Set("releaseType", value) if err != nil { diff --git a/models/service_principal.go b/models/service_principal.go index 72a0c4ee20f..35b740861fe 100644 --- a/models/service_principal.go +++ b/models/service_principal.go @@ -78,7 +78,7 @@ func (m *ServicePrincipal) GetAppDisplayName()(*string) { } return nil } -// GetAppId gets the appId property value. The unique identifier for the associated application (its appId property). Supports $filter (eq, ne, not, in, startsWith). +// GetAppId gets the appId property value. The unique identifier for the associated application (its appId property). Alternate key. Supports $filter (eq, ne, not, in, startsWith). func (m *ServicePrincipal) GetAppId()(*string) { val, err := m.GetBackingStore().Get("appId") if err != nil { @@ -1904,7 +1904,7 @@ func (m *ServicePrincipal) SetAppDisplayName(value *string)() { panic(err) } } -// SetAppId sets the appId property value. The unique identifier for the associated application (its appId property). Supports $filter (eq, ne, not, in, startsWith). +// SetAppId sets the appId property value. The unique identifier for the associated application (its appId property). Alternate key. Supports $filter (eq, ne, not, in, startsWith). func (m *ServicePrincipal) SetAppId(value *string)() { err := m.GetBackingStore().Set("appId", value) if err != nil { diff --git a/models/subject_rights_request_enumerated_mailbox_location.go b/models/subject_rights_request_enumerated_mailbox_location.go index 131bd0f4290..52d18380a0f 100644 --- a/models/subject_rights_request_enumerated_mailbox_location.go +++ b/models/subject_rights_request_enumerated_mailbox_location.go @@ -58,7 +58,7 @@ func (m *SubjectRightsRequestEnumeratedMailboxLocation) GetFieldDeserializers()( } return res } -// GetUpns gets the upns property value. Collection of mailboxes that should be included in the search. Includes the UPN (user principal name) of each mailbox, for example, Monica.Thompson@contoso.com. +// GetUpns gets the upns property value. The upns property func (m *SubjectRightsRequestEnumeratedMailboxLocation) GetUpns()([]string) { val, err := m.GetBackingStore().Get("upns") if err != nil { @@ -69,7 +69,7 @@ func (m *SubjectRightsRequestEnumeratedMailboxLocation) GetUpns()([]string) { } return nil } -// GetUserPrincipalNames gets the userPrincipalNames property value. The userPrincipalNames property +// GetUserPrincipalNames gets the userPrincipalNames property value. Collection of mailboxes that should be included in the search. Includes the user principal name (UPN) of each mailbox, for example, Monica.Thompson@contoso.com. func (m *SubjectRightsRequestEnumeratedMailboxLocation) GetUserPrincipalNames()([]string) { val, err := m.GetBackingStore().Get("userPrincipalNames") if err != nil { @@ -100,14 +100,14 @@ func (m *SubjectRightsRequestEnumeratedMailboxLocation) Serialize(writer i878a80 } return nil } -// SetUpns sets the upns property value. Collection of mailboxes that should be included in the search. Includes the UPN (user principal name) of each mailbox, for example, Monica.Thompson@contoso.com. +// SetUpns sets the upns property value. The upns property func (m *SubjectRightsRequestEnumeratedMailboxLocation) SetUpns(value []string)() { err := m.GetBackingStore().Set("upns", value) if err != nil { panic(err) } } -// SetUserPrincipalNames sets the userPrincipalNames property value. The userPrincipalNames property +// SetUserPrincipalNames sets the userPrincipalNames property value. Collection of mailboxes that should be included in the search. Includes the user principal name (UPN) of each mailbox, for example, Monica.Thompson@contoso.com. func (m *SubjectRightsRequestEnumeratedMailboxLocation) SetUserPrincipalNames(value []string)() { err := m.GetBackingStore().Set("userPrincipalNames", value) if err != nil { diff --git a/models/subject_rights_request_history.go b/models/subject_rights_request_history.go index f1482077a25..1827a460281 100644 --- a/models/subject_rights_request_history.go +++ b/models/subject_rights_request_history.go @@ -137,7 +137,7 @@ func (m *SubjectRightsRequestHistory) GetOdataType()(*string) { } return nil } -// GetStage gets the stage property value. The stage when the entity was changed. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue. +// GetStage gets the stage property value. The stage when the entity was changed. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: approval. func (m *SubjectRightsRequestHistory) GetStage()(*SubjectRightsRequestStage) { val, err := m.GetBackingStore().Get("stage") if err != nil { @@ -250,7 +250,7 @@ func (m *SubjectRightsRequestHistory) SetOdataType(value *string)() { panic(err) } } -// SetStage sets the stage property value. The stage when the entity was changed. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue. +// SetStage sets the stage property value. The stage when the entity was changed. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: approval. func (m *SubjectRightsRequestHistory) SetStage(value *SubjectRightsRequestStage)() { err := m.GetBackingStore().Set("stage", value) if err != nil { diff --git a/models/subject_rights_request_stage_detail.go b/models/subject_rights_request_stage_detail.go index ddb91da9d95..9c448df0d6f 100644 --- a/models/subject_rights_request_stage_detail.go +++ b/models/subject_rights_request_stage_detail.go @@ -105,7 +105,7 @@ func (m *SubjectRightsRequestStageDetail) GetOdataType()(*string) { } return nil } -// GetStage gets the stage property value. The stage of the subject rights request. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. +// GetStage gets the stage property value. The stage of the subject rights request. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. You must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: approval. func (m *SubjectRightsRequestStageDetail) GetStage()(*SubjectRightsRequestStage) { val, err := m.GetBackingStore().Get("stage") if err != nil { @@ -188,7 +188,7 @@ func (m *SubjectRightsRequestStageDetail) SetOdataType(value *string)() { panic(err) } } -// SetStage sets the stage property value. The stage of the subject rights request. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. +// SetStage sets the stage property value. The stage of the subject rights request. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue, approval. You must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: approval. func (m *SubjectRightsRequestStageDetail) SetStage(value *SubjectRightsRequestStage)() { err := m.GetBackingStore().Set("stage", value) if err != nil { diff --git a/models/virtual_endpoint.go b/models/virtual_endpoint.go index 9674fac4b7e..87d0e7f7e62 100644 --- a/models/virtual_endpoint.go +++ b/models/virtual_endpoint.go @@ -344,7 +344,7 @@ func (m *VirtualEndpoint) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } -// GetFrontLineServicePlans gets the frontLineServicePlans property value. The frontLineServicePlans property +// GetFrontLineServicePlans gets the frontLineServicePlans property value. Front-line service plans for a Cloud PC. func (m *VirtualEndpoint) GetFrontLineServicePlans()([]CloudPcFrontLineServicePlanable) { val, err := m.GetBackingStore().Get("frontLineServicePlans") if err != nil { @@ -421,7 +421,7 @@ func (m *VirtualEndpoint) GetServicePlans()([]CloudPcServicePlanable) { } return nil } -// GetSharedUseServicePlans gets the sharedUseServicePlans property value. Cloud PC shared-use service plans. +// GetSharedUseServicePlans gets the sharedUseServicePlans property value. The sharedUseServicePlans property func (m *VirtualEndpoint) GetSharedUseServicePlans()([]CloudPcSharedUseServicePlanable) { val, err := m.GetBackingStore().Get("sharedUseServicePlans") if err != nil { @@ -701,7 +701,7 @@ func (m *VirtualEndpoint) SetExternalPartnerSettings(value []CloudPcExternalPart panic(err) } } -// SetFrontLineServicePlans sets the frontLineServicePlans property value. The frontLineServicePlans property +// SetFrontLineServicePlans sets the frontLineServicePlans property value. Front-line service plans for a Cloud PC. func (m *VirtualEndpoint) SetFrontLineServicePlans(value []CloudPcFrontLineServicePlanable)() { err := m.GetBackingStore().Set("frontLineServicePlans", value) if err != nil { @@ -750,7 +750,7 @@ func (m *VirtualEndpoint) SetServicePlans(value []CloudPcServicePlanable)() { panic(err) } } -// SetSharedUseServicePlans sets the sharedUseServicePlans property value. Cloud PC shared-use service plans. +// SetSharedUseServicePlans sets the sharedUseServicePlans property value. The sharedUseServicePlans property func (m *VirtualEndpoint) SetSharedUseServicePlans(value []CloudPcSharedUseServicePlanable)() { err := m.GetBackingStore().Set("sharedUseServicePlans", value) if err != nil { diff --git a/models/windows_app_x_app_assignment_settings.go b/models/windows_app_x_app_assignment_settings.go index f38f5bee38d..fe04ee9a3f9 100644 --- a/models/windows_app_x_app_assignment_settings.go +++ b/models/windows_app_x_app_assignment_settings.go @@ -36,7 +36,7 @@ func (m *WindowsAppXAppAssignmentSettings) GetFieldDeserializers()(map[string]fu } return res } -// GetUseDeviceContext gets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. +// GetUseDeviceContext gets the useDeviceContext property value. Whether or not to use device execution context for Windows AppX mobile app. func (m *WindowsAppXAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") if err != nil { @@ -61,7 +61,7 @@ func (m *WindowsAppXAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689 } return nil } -// SetUseDeviceContext sets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. +// SetUseDeviceContext sets the useDeviceContext property value. Whether or not to use device execution context for Windows AppX mobile app. func (m *WindowsAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) if err != nil { diff --git a/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_cross_tenant_access_report_with_start_date_time_with_end_date_time_get_response.go b/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_cross_tenant_access_report_with_start_date_time_with_end_date_time_get_response.go new file mode 100644 index 00000000000..5d35517fcd6 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_cross_tenant_access_report_with_start_date_time_with_end_date_time_get_response.go @@ -0,0 +1,89 @@ +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" +) + +// ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse +type ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse()(*ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateCrossTenantAccessFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessable) + } + return nil +} +// Serialize serializes information the current object +func (m *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponseable +type ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessable) + SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CrossTenantAccessable)() +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_cross_tenant_access_report_with_start_date_time_with_end_date_time_response.go b/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_cross_tenant_access_report_with_start_date_time_with_end_date_time_response.go new file mode 100644 index 00000000000..b367f416ed7 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_cross_tenant_access_report_with_start_date_time_with_end_date_time_response.go @@ -0,0 +1,28 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponse +// Deprecated: This class is obsolete. Use crossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponse struct { + ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponse instantiates a new ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponse()(*ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponse) { + m := &ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponse{ + ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse: *NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponse(), nil +} +// ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponseable +// Deprecated: This class is obsolete. Use crossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponseable +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_request_builder.go b/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_request_builder.go new file mode 100644 index 00000000000..54268594eb6 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_cross_tenant_access_report_with_start_date_time_with_end_date_time_request_builder.go @@ -0,0 +1,113 @@ +package networkaccess + +import ( + "context" + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder provides operations to call the crossTenantAccessReport method. +type ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters invoke function crossTenantAccessReport +type ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters 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"` +} +// ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters +} +// NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal instantiates a new MicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.crossTenantAccessReport(startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", 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 +} +// NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder instantiates a new MicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function crossTenantAccessReport +// Deprecated: This method is obsolete. Use GetAsCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse instead. +func (m *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeResponseable), nil +} +// GetAsCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse invoke function crossTenantAccessReport +func (m *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder) GetAsCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeCrossTenantAccessReportWithStartDateTimeWithEndDateTimeGetResponseable), nil +} +// ToGetRequestInformation invoke function crossTenantAccessReport +func (m *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + 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. +func (m *ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_destination_report_with_start_date_time_with_end_date_time_get_response.go b/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_destination_report_with_start_date_time_with_end_date_time_get_response.go new file mode 100644 index 00000000000..9b28efc100a --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_destination_report_with_start_date_time_with_end_date_time_get_response.go @@ -0,0 +1,89 @@ +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" +) + +// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse()(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateDestinationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable) + } + return nil +} +// Serialize serializes information the current object +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable) + SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Destinationable)() +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_destination_report_with_start_date_time_with_end_date_time_response.go b/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_destination_report_with_start_date_time_with_end_date_time_response.go new file mode 100644 index 00000000000..e61e491d8ad --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_destination_report_with_start_date_time_with_end_date_time_response.go @@ -0,0 +1,28 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse +// Deprecated: This class is obsolete. Use destinationReportWithStartDateTimeWithEndDateTimeGetResponse 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 +func CreateReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponse(), nil +} +// ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseable +// Deprecated: This class is obsolete. Use destinationReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeDestinationReportWithStartDateTimeWithEndDateTimeGetResponseable +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_request_builder.go b/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_request_builder.go new file mode 100644 index 00000000000..d36bbea00ec --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_destination_report_with_start_date_time_with_end_date_time_request_builder.go @@ -0,0 +1,113 @@ +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 MicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder 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}){?%24top,%24skip,%24search,%24filter,%24count}", 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 MicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder 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. +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 { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": 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 +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 { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": 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 +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + 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. +func (m *ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_device_report_with_start_date_time_with_end_date_time_get_response.go b/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_device_report_with_start_date_time_with_end_date_time_get_response.go new file mode 100644 index 00000000000..97543057afc --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_device_report_with_start_date_time_with_end_date_time_get_response.go @@ -0,0 +1,89 @@ +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" +) + +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse) 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 +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponseable +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable) + SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Deviceable)() +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_device_report_with_start_date_time_with_end_date_time_response.go b/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_device_report_with_start_date_time_with_end_date_time_response.go new file mode 100644 index 00000000000..660d75043c9 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_device_report_with_start_date_time_with_end_date_time_response.go @@ -0,0 +1,28 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponse +// Deprecated: This class is obsolete. Use deviceReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponse struct { + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponse instantiates a new ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponse()(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponse) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponse{ + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse: *NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponse(), nil +} +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponseable +// Deprecated: This class is obsolete. Use deviceReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponseable +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_request_builder.go b/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_request_builder.go new file mode 100644 index 00000000000..4fbd8b283b4 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_device_report_with_start_date_time_with_end_date_time_request_builder.go @@ -0,0 +1,113 @@ +package networkaccess + +import ( + "context" + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder provides operations to call the deviceReport method. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters invoke function deviceReport +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters 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"` +} +// ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal instantiates a new MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.deviceReport(startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", 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 +} +// NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder instantiates a new MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function deviceReport +// Deprecated: This method is obsolete. Use GetAsDeviceReportWithStartDateTimeWithEndDateTimeGetResponse instead. +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeResponseable), nil +} +// GetAsDeviceReportWithStartDateTimeWithEndDateTimeGetResponse invoke function deviceReport +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder) GetAsDeviceReportWithStartDateTimeWithEndDateTimeGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeDeviceReportWithStartDateTimeWithEndDateTimeGetResponseable), nil +} +// ToGetRequestInformation invoke function deviceReport +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + 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. +func (m *ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_request_builder.go b/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_request_builder.go new file mode 100644 index 00000000000..32234c6a5e4 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_request_builder.go @@ -0,0 +1,113 @@ +package networkaccess + +import ( + "context" + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder provides operations to call the trafficDistribution method. +type ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters invoke function trafficDistribution +type ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters 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"` +} +// ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters +} +// NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderInternal instantiates a new MicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.trafficDistribution(startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", 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 +} +// NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder instantiates a new MicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function trafficDistribution +// Deprecated: This method is obsolete. Use GetAsTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse instead. +func (m *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponseable), nil +} +// GetAsTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse invoke function trafficDistribution +func (m *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder) GetAsTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponseable), nil +} +// ToGetRequestInformation invoke function trafficDistribution +func (m *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + 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. +func (m *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_traffic_distribution_with_start_date_time_with_end_date_time_get_response.go b/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_traffic_distribution_with_start_date_time_with_end_date_time_get_response.go new file mode 100644 index 00000000000..719690146d1 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_traffic_distribution_with_start_date_time_with_end_date_time_get_response.go @@ -0,0 +1,89 @@ +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" +) + +// ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse +type ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse()(*ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateTrafficDistributionPointFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.TrafficDistributionPointable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.TrafficDistributionPointable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.TrafficDistributionPointable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.TrafficDistributionPointable) + } + return nil +} +// Serialize serializes information the current object +func (m *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.TrafficDistributionPointable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponseable +type ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.TrafficDistributionPointable) + SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.TrafficDistributionPointable)() +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_traffic_distribution_with_start_date_time_with_end_date_time_response.go b/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_traffic_distribution_with_start_date_time_with_end_date_time_response.go new file mode 100644 index 00000000000..b101bde642e --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_traffic_distribution_with_start_date_time_with_end_date_time_traffic_distribution_with_start_date_time_with_end_date_time_response.go @@ -0,0 +1,28 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponse +// Deprecated: This class is obsolete. Use trafficDistributionWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponse struct { + ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponse instantiates a new ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponse()(*ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponse) { + m := &ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponse{ + ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse: *NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponse(), nil +} +// ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponseable +// Deprecated: This class is obsolete. Use trafficDistributionWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeTrafficDistributionWithStartDateTimeWithEndDateTimeGetResponseable +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_request_builder.go b/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_request_builder.go new file mode 100644 index 00000000000..d946431531a --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_request_builder.go @@ -0,0 +1,113 @@ +package networkaccess + +import ( + "context" + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder provides operations to call the userReport method. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters invoke function userReport +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters 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"` +} +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal instantiates a new MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.userReport(startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", 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 +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder instantiates a new MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function userReport +// Deprecated: This method is obsolete. Use GetAsUserReportWithStartDateTimeWithEndDateTimeGetResponse instead. +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponseable), nil +} +// GetAsUserReportWithStartDateTimeWithEndDateTimeGetResponse invoke function userReport +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder) GetAsUserReportWithStartDateTimeWithEndDateTimeGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponseable), nil +} +// ToGetRequestInformation invoke function userReport +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + 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. +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_user_report_with_start_date_time_with_end_date_time_get_response.go b/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_user_report_with_start_date_time_with_end_date_time_get_response.go new file mode 100644 index 00000000000..88cff9aa8e8 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_user_report_with_start_date_time_with_end_date_time_get_response.go @@ -0,0 +1,89 @@ +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" +) + +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse) 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 +func (m *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponseable +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable) + SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Userable)() +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_user_report_with_start_date_time_with_end_date_time_response.go b/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_user_report_with_start_date_time_with_end_date_time_response.go new file mode 100644 index 00000000000..09a6f0825aa --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_user_report_with_start_date_time_with_end_date_time_user_report_with_start_date_time_with_end_date_time_response.go @@ -0,0 +1,28 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponse +// Deprecated: This class is obsolete. Use userReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponse struct { + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponse instantiates a new ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponse()(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponse) { + m := &ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponse{ + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse: *NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponse(), nil +} +// ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponseable +// Deprecated: This class is obsolete. Use userReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeUserReportWithStartDateTimeWithEndDateTimeGetResponseable +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_request_builder.go b/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_request_builder.go new file mode 100644 index 00000000000..a104e124a35 --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_request_builder.go @@ -0,0 +1,113 @@ +package networkaccess + +import ( + "context" + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder provides operations to call the webCategoryReport method. +type ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters invoke function webCategoryReport +type ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters 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"` +} +// ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters +} +// NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal instantiates a new MicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + m := &ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/networkAccess/reports/microsoft.graph.networkaccess.webCategoryReport(startDateTime={startDateTime},endDateTime={endDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", 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 +} +// NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder instantiates a new MicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function webCategoryReport +// Deprecated: This method is obsolete. Use GetAsWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse instead. +func (m *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder) Get(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponseable), nil +} +// GetAsWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse invoke function webCategoryReport +func (m *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder) GetAsWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "4XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + "5XX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponseable), nil +} +// ToGetRequestInformation invoke function webCategoryReport +func (m *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() + requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate + requestInfo.PathParameters = m.BaseRequestBuilder.PathParameters + requestInfo.Method = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET + requestInfo.Headers.Add("Accept", "application/json") + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + 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. +func (m *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_web_category_report_with_start_date_time_with_end_date_time_get_response.go b/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_web_category_report_with_start_date_time_with_end_date_time_get_response.go new file mode 100644 index 00000000000..eefcfa3cb8d --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_web_category_report_with_start_date_time_with_end_date_time_get_response.go @@ -0,0 +1,89 @@ +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" +) + +// ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse +type ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse instantiates a new ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse()(*ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse) { + m := &ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +func (m *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.CreateWebCategoriesSummaryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.WebCategoriesSummaryable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.WebCategoriesSummaryable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +func (m *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse) GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.WebCategoriesSummaryable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.WebCategoriesSummaryable) + } + return nil +} +// Serialize serializes information the current object +func (m *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse) 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 *ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse) SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.WebCategoriesSummaryable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +// ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponseable +type ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.WebCategoriesSummaryable) + SetValue(value []i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.WebCategoriesSummaryable)() +} diff --git a/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_web_category_report_with_start_date_time_with_end_date_time_response.go b/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_web_category_report_with_start_date_time_with_end_date_time_response.go new file mode 100644 index 00000000000..23c1ebef71d --- /dev/null +++ b/networkaccess/reports_microsoft_graph_networkaccess_web_category_report_with_start_date_time_with_end_date_time_web_category_report_with_start_date_time_with_end_date_time_response.go @@ -0,0 +1,28 @@ +package networkaccess + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponse +// Deprecated: This class is obsolete. Use webCategoryReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponse struct { + ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse +} +// NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponse instantiates a new ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponse and sets the default values. +func NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponse()(*ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponse) { + m := &ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponse{ + ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse: *NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponse(), + } + return m +} +// CreateReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +func CreateReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponse(), nil +} +// ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponseable +// Deprecated: This class is obsolete. Use webCategoryReportWithStartDateTimeWithEndDateTimeGetResponse instead. +type ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeResponseable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeWebCategoryReportWithStartDateTimeWithEndDateTimeGetResponseable +} diff --git a/networkaccess/reports_request_builder.go b/networkaccess/reports_request_builder.go index 811b77e7ce4..02055c58280 100644 --- a/networkaccess/reports_request_builder.go +++ b/networkaccess/reports_request_builder.go @@ -90,6 +90,18 @@ func (m *ReportsRequestBuilder) Get(ctx context.Context, requestConfiguration *R } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Reportsable), nil } +// MicrosoftGraphNetworkaccessCrossTenantAccessReportWithStartDateTimeWithEndDateTime provides operations to call the crossTenantAccessReport method. +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. +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDestinationReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +} +// MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTime provides operations to call the deviceReport method. +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessDeviceReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +} // MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime provides operations to call the entitiesSummaries method. func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilder) { return NewReportsMicrosoftGraphNetworkaccessEntitiesSummariesWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) @@ -106,10 +118,22 @@ func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessGetDestinationSummari func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTime(activityPivotDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilder) { return NewReportsMicrosoftGraphNetworkaccessGetDeviceUsageSummaryWithStartDateTimeWithEndDateTimeWithActivityPivotDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, activityPivotDateTime, endDateTime, startDateTime) } +// MicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTime provides operations to call the trafficDistribution method. +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessTrafficDistributionWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +} // MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime provides operations to call the transactionSummaries method. func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilder) { return NewReportsMicrosoftGraphNetworkaccessTransactionSummariesWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) } +// MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTime provides operations to call the userReport method. +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessUserReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +} +// MicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTime provides operations to call the webCategoryReport method. +func (m *ReportsRequestBuilder) MicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTime(endDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time, startDateTime *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)(*ReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilder) { + return NewReportsMicrosoftGraphNetworkaccessWebCategoryReportWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) +} // Patch update the navigation property reports in networkAccess func (m *ReportsRequestBuilder) Patch(ctx context.Context, body i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Reportsable, requestConfiguration *ReportsRequestBuilderPatchRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.Reportsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); diff --git a/organization/organization_request_builder.go b/organization/organization_request_builder.go index da9b09e707b..7f89edff198 100644 --- a/organization/organization_request_builder.go +++ b/organization/organization_request_builder.go @@ -11,7 +11,7 @@ import ( type OrganizationRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// OrganizationRequestBuilderGetQueryParameters retrieve a list of organization objects. This API is available in the following national cloud deployments. +// OrganizationRequestBuilderGetQueryParameters retrieve a list of organization objects. There's only one organization object in the collection. This API is available in the following national cloud deployments. type OrganizationRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *OrganizationRequestBuilder) Count()(*CountRequestBuilder) { func (m *OrganizationRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of organization objects. This API is available in the following national cloud deployments. +// Get retrieve a list of organization objects. There's only one organization object in the collection. This API is available in the following national cloud deployments. // [Find more info here] // // [Find more info here]: https://learn.microsoft.com/graph/api/organization-list?view=graph-rest-1.0 @@ -127,7 +127,7 @@ func (m *OrganizationRequestBuilder) Post(ctx context.Context, body ie233ee762e2 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Organizationable), nil } -// ToGetRequestInformation retrieve a list of organization objects. This API is available in the following national cloud deployments. +// ToGetRequestInformation retrieve a list of organization objects. There's only one organization object in the collection. This API is available in the following national cloud deployments. func (m *OrganizationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OrganizationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/riskdetections/risk_detections_request_builder.go b/riskdetections/risk_detections_request_builder.go index e458aac0040..d49308767af 100644 --- a/riskdetections/risk_detections_request_builder.go +++ b/riskdetections/risk_detections_request_builder.go @@ -11,7 +11,7 @@ import ( type RiskDetectionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RiskDetectionsRequestBuilderGetQueryParameters retrieve the properties of a collection of riskDetection objects. This API is available in the following national cloud deployments. +// RiskDetectionsRequestBuilderGetQueryParameters retrieve the properties of a riskDetection object. This API is available in the following national cloud deployments. type RiskDetectionsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -66,10 +66,10 @@ func NewRiskDetectionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7dae urlParams["request-raw-url"] = rawUrl return NewRiskDetectionsRequestBuilderInternal(urlParams, requestAdapter) } -// Get retrieve the properties of a collection of riskDetection objects. This API is available in the following national cloud deployments. +// Get retrieve the properties of a riskDetection object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 func (m *RiskDetectionsRequestBuilder) Get(ctx context.Context, requestConfiguration *RiskDetectionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -107,7 +107,7 @@ func (m *RiskDetectionsRequestBuilder) Post(ctx context.Context, body ie233ee762 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskDetectionable), nil } -// ToGetRequestInformation retrieve the properties of a collection of riskDetection objects. This API is available in the following national cloud deployments. +// ToGetRequestInformation retrieve the properties of a riskDetection object. This API is available in the following national cloud deployments. func (m *RiskDetectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskDetectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/rolemanagement/cloud_p_c_role_assignments_request_builder.go b/rolemanagement/cloud_p_c_role_assignments_request_builder.go index 97e97909e83..ea32df74205 100644 --- a/rolemanagement/cloud_p_c_role_assignments_request_builder.go +++ b/rolemanagement/cloud_p_c_role_assignments_request_builder.go @@ -77,7 +77,7 @@ func (m *CloudPCRoleAssignmentsRequestBuilder) Count()(*CloudPCRoleAssignmentsCo // Get get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/unifiedroleassignmentmultiple-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/rbacapplicationmultiple-list-roleassignments?view=graph-rest-1.0 func (m *CloudPCRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *CloudPCRoleAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/rolemanagement/device_management_role_assignments_request_builder.go b/rolemanagement/device_management_role_assignments_request_builder.go index 72c9d61027b..b056cf20d9c 100644 --- a/rolemanagement/device_management_role_assignments_request_builder.go +++ b/rolemanagement/device_management_role_assignments_request_builder.go @@ -77,7 +77,7 @@ func (m *DeviceManagementRoleAssignmentsRequestBuilder) Count()(*DeviceManagemen // Get get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/unifiedroleassignmentmultiple-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/rbacapplicationmultiple-list-roleassignments?view=graph-rest-1.0 func (m *DeviceManagementRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceManagementRoleAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedRoleAssignmentMultipleCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/sites/item_lists_list_item_request_builder.go b/sites/item_lists_list_item_request_builder.go index cf8328e6e3e..76e7a1bac7b 100644 --- a/sites/item_lists_list_item_request_builder.go +++ b/sites/item_lists_list_item_request_builder.go @@ -18,7 +18,7 @@ type ItemListsListItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemListsListItemRequestBuilderGetQueryParameters get the list of richLongRunningOperations associated with a list. This API is available in the following national cloud deployments. +// ItemListsListItemRequestBuilderGetQueryParameters return the metadata for a list][]. This API is available in the following [national cloud deployments. type ItemListsListItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,10 +90,10 @@ func (m *ItemListsListItemRequestBuilder) Delete(ctx context.Context, requestCon func (m *ItemListsListItemRequestBuilder) Drive()(*ItemListsItemDriveRequestBuilder) { return NewItemListsItemDriveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the list of richLongRunningOperations associated with a list. This API is available in the following national cloud deployments. +// Get return the metadata for a list][]. This API is available in the following [national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/list-get?view=graph-rest-1.0 func (m *ItemListsListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsListItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Listable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -159,7 +159,7 @@ func (m *ItemListsListItemRequestBuilder) ToDeleteRequestInformation(ctx context } return requestInfo, nil } -// ToGetRequestInformation get the list of richLongRunningOperations associated with a list. This API is available in the following national cloud deployments. +// ToGetRequestInformation return the metadata for a list][]. This API is available in the following [national cloud deployments. func (m *ItemListsListItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsListItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index 528fbd17dee..4d261521beb 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -11,7 +11,7 @@ import ( type SitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// SitesRequestBuilderGetQueryParameters list all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. This API is available in the following national cloud deployments. +// SitesRequestBuilderGetQueryParameters search across a SharePoint tenant for sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. This API is available in the following [national cloud deployments. type SitesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -75,10 +75,10 @@ func (m *SitesRequestBuilder) Count()(*CountRequestBuilder) { func (m *SitesRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. This API is available in the following national cloud deployments. +// Get search across a SharePoint tenant for sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. This API is available in the following [national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/site-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/site-search?view=graph-rest-1.0 func (m *SitesRequestBuilder) Get(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -105,7 +105,7 @@ func (m *SitesRequestBuilder) GetAllSites()(*GetAllSitesRequestBuilder) { func (m *SitesRequestBuilder) Remove()(*RemoveRequestBuilder) { return NewRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation list all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. This API is available in the following national cloud deployments. +// ToGetRequestInformation search across a SharePoint tenant for sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. This API is available in the following [national cloud deployments. func (m *SitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/teamwork/team_templates_request_builder.go b/teamwork/team_templates_request_builder.go index 851578d682e..679b7ac247d 100644 --- a/teamwork/team_templates_request_builder.go +++ b/teamwork/team_templates_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamTemplatesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesRequestBuilderGetQueryParameters list the teamTemplateDefinition objects associated with a teamTemplate. This API is available in the following national cloud deployments. +// TeamTemplatesRequestBuilderGetQueryParameters get the list of teamTemplate objects that are available for a tenant. This API is available in the following national cloud deployments. type TeamTemplatesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -74,10 +74,10 @@ func NewTeamTemplatesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee func (m *TeamTemplatesRequestBuilder) Count()(*TeamTemplatesCountRequestBuilder) { return NewTeamTemplatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list the teamTemplateDefinition objects associated with a teamTemplate. This API is available in the following national cloud deployments. +// Get get the list of teamTemplate objects that are available for a tenant. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/teamtemplate-list-definitions?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/teamwork-list-teamtemplates?view=graph-rest-1.0 func (m *TeamTemplatesRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamTemplateCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -115,7 +115,7 @@ func (m *TeamTemplatesRequestBuilder) Post(ctx context.Context, body ie233ee762e } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamTemplateable), nil } -// ToGetRequestInformation list the teamTemplateDefinition objects associated with a teamTemplate. This API is available in the following national cloud deployments. +// ToGetRequestInformation get the list of teamTemplate objects that are available for a tenant. This API is available in the following national cloud deployments. func (m *TeamTemplatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/tenantrelationships/multi_tenant_organization_request_builder.go b/tenantrelationships/multi_tenant_organization_request_builder.go index 366a5ccb7bf..03736c4f6b8 100644 --- a/tenantrelationships/multi_tenant_organization_request_builder.go +++ b/tenantrelationships/multi_tenant_organization_request_builder.go @@ -73,10 +73,10 @@ func (m *MultiTenantOrganizationRequestBuilder) Get(ctx context.Context, request func (m *MultiTenantOrganizationRequestBuilder) JoinRequest()(*MultiTenantOrganizationJoinRequestRequestBuilder) { return NewMultiTenantOrganizationJoinRequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a multi-tenant organization. +// Patch create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/multitenantorganization-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0 func (m *MultiTenantOrganizationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -115,7 +115,7 @@ func (m *MultiTenantOrganizationRequestBuilder) ToGetRequestInformation(ctx cont } return requestInfo, nil } -// ToPatchRequestInformation update the properties of a multi-tenant organization. +// ToPatchRequestInformation create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. This API is available in the following national cloud deployments. func (m *MultiTenantOrganizationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MultiTenantOrganizationable, requestConfiguration *MultiTenantOrganizationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go index 0fc86ba01f6..cedb86fa0d9 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. This API is available in the following national cloud deployments. type ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// Get retrieve a list of attachment objects. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +116,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// ToGetRequestInformation retrieve a list of attachment objects. This API is available in the following national cloud deployments. func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_child_folders_request_builder.go b/users/item_mail_folders_item_child_folders_request_builder.go index 2a4bbd46907..14936bbf0c1 100644 --- a/users/item_mail_folders_item_child_folders_request_builder.go +++ b/users/item_mail_folders_item_child_folders_request_builder.go @@ -100,10 +100,10 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderCollectionResponseable), nil } -// Post create a new mailSearchFolder in the specified user's mailbox. This API is available in the following national cloud deployments. +// Post use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/mailsearchfolder-post?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/mailfolder-post-childfolders?view=graph-rest-1.0 func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -138,7 +138,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToGetRequestInformation( } return requestInfo, nil } -// ToPostRequestInformation create a new mailSearchFolder in the specified user's mailbox. This API is available in the following national cloud deployments. +// ToPostRequestInformation use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. This API is available in the following national cloud deployments. func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_mail_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_messages_item_attachments_request_builder.go index 348a692273b..a7313a418cb 100644 --- a/users/item_mail_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_messages_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. This API is available in the following national cloud deployments. type ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Count()(*Item func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// Get retrieve a list of attachment objects. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +116,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// ToGetRequestInformation retrieve a list of attachment objects. This API is available in the following national cloud deployments. func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_messages_item_attachments_request_builder.go b/users/item_messages_item_attachments_request_builder.go index 98d897ba6eb..197c97c7115 100644 --- a/users/item_messages_item_attachments_request_builder.go +++ b/users/item_messages_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemMessagesItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters retrieve a list of attachment objects. This API is available in the following national cloud deployments. type ItemMessagesItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -72,10 +72,10 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Count()(*ItemMessagesItemAtt func (m *ItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// Get retrieve a list of attachment objects. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -116,7 +116,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation retrieve a list of attachment objects attached to a message. This API is available in the following national cloud deployments. +// ToGetRequestInformation retrieve a list of attachment objects. This API is available in the following national cloud deployments. func (m *ItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_messages_item_value_content_request_builder.go b/users/item_messages_item_value_content_request_builder.go index df7aeddbfa5..412ff9c335b 100644 --- a/users/item_messages_item_value_content_request_builder.go +++ b/users/item_messages_item_value_content_request_builder.go @@ -40,7 +40,7 @@ func NewItemMessagesItemValueContentRequestBuilder(rawUrl string, requestAdapter // Get get media content for the navigation property messages from users // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 func (m *ItemMessagesItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/users/item_messages_message_item_request_builder.go b/users/item_messages_message_item_request_builder.go index d9c4a91a633..0ae9d5b384b 100644 --- a/users/item_messages_message_item_request_builder.go +++ b/users/item_messages_message_item_request_builder.go @@ -110,7 +110,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Forward()(*ItemMessagesItemForwa // Get the messages in a mailbox or folder. Read-only. Nullable. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/singlevaluelegacyextendedproperty-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/message-get?view=graph-rest-1.0 func (m *ItemMessagesMessageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -145,10 +145,10 @@ func (m *ItemMessagesMessageItemRequestBuilder) Mentions()(*ItemMessagesItemMent func (m *ItemMessagesMessageItemRequestBuilder) Move()(*ItemMessagesItemMoveRequestBuilder) { return NewItemMessagesItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a message object. This API is available in the following national cloud deployments. +// Patch update the properties of an eventMessage object. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/message-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/eventmessage-update?view=graph-rest-1.0 func (m *ItemMessagesMessageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -207,7 +207,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) ToGetRequestInformation(ctx cont } return requestInfo, nil } -// ToPatchRequestInformation update the properties of a message object. This API is available in the following national cloud deployments. +// ToPatchRequestInformation update the properties of an eventMessage object. This API is available in the following national cloud deployments. func (m *ItemMessagesMessageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate diff --git a/users/item_messages_request_builder.go b/users/item_messages_request_builder.go index 7117d1d5eb1..94a2de64140 100644 --- a/users/item_messages_request_builder.go +++ b/users/item_messages_request_builder.go @@ -83,7 +83,7 @@ func (m *ItemMessagesRequestBuilder) Delta()(*ItemMessagesDeltaRequestBuilder) { // Get the messages in a mailbox or folder. Read-only. Nullable. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0 func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/users/item_presence_request_builder.go b/users/item_presence_request_builder.go index fb794eb86dd..c570e7d26db 100644 --- a/users/item_presence_request_builder.go +++ b/users/item_presence_request_builder.go @@ -18,7 +18,7 @@ type ItemPresenceRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemPresenceRequestBuilderGetQueryParameters get a user's presence information. This API is available in the following national cloud deployments. +// ItemPresenceRequestBuilderGetQueryParameters set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. type ItemPresenceRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -78,10 +78,10 @@ func (m *ItemPresenceRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get get a user's presence information. This API is available in the following national cloud deployments. +// Get set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. // [Find more info here] // -// [Find more info here]: https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0 func (m *ItemPresenceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -143,7 +143,7 @@ func (m *ItemPresenceRequestBuilder) ToDeleteRequestInformation(ctx context.Cont } return requestInfo, nil } -// ToGetRequestInformation get a user's presence information. This API is available in the following national cloud deployments. +// ToGetRequestInformation set a presence status message for a user. An optional expiration date and time can be supplied. This API is available in the following national cloud deployments. func (m *ItemPresenceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformation() requestInfo.UrlTemplate = m.BaseRequestBuilder.UrlTemplate