// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new ManagedDeviceMobileAppConfigurationDeviceSummary
{
OdataType = "#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary",
PendingCount = 12,
NotApplicableCount = 2,
SuccessCount = 12,
ErrorCount = 10,
FailedCount = 11,
LastUpdateDateTime = DateTimeOffset.Parse("2016-12-31T23:58:21.6459442-08:00"),
ConfigurationVersion = 4,
};
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceAppManagement.MobileAppConfigurations["{managedDeviceMobileAppConfiguration-id}"].DeviceStatusSummary.PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
ManagedDeviceMobileAppConfigurationDeviceSummary managedDeviceMobileAppConfigurationDeviceSummary = new ManagedDeviceMobileAppConfigurationDeviceSummary();
managedDeviceMobileAppConfigurationDeviceSummary.setOdataType("#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary");
managedDeviceMobileAppConfigurationDeviceSummary.setPendingCount(12);
managedDeviceMobileAppConfigurationDeviceSummary.setNotApplicableCount(2);
managedDeviceMobileAppConfigurationDeviceSummary.setSuccessCount(12);
managedDeviceMobileAppConfigurationDeviceSummary.setErrorCount(10);
managedDeviceMobileAppConfigurationDeviceSummary.setFailedCount(11);
OffsetDateTime lastUpdateDateTime = OffsetDateTime.parse("2016-12-31T23:58:21.6459442-08:00");
managedDeviceMobileAppConfigurationDeviceSummary.setLastUpdateDateTime(lastUpdateDateTime);
managedDeviceMobileAppConfigurationDeviceSummary.setConfigurationVersion(4);
ManagedDeviceMobileAppConfigurationDeviceSummary result = graphClient.deviceAppManagement().mobileAppConfigurations().byManagedDeviceMobileAppConfigurationId("{managedDeviceMobileAppConfiguration-id}").deviceStatusSummary().patch(managedDeviceMobileAppConfigurationDeviceSummary);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.managed_device_mobile_app_configuration_device_summary import ManagedDeviceMobileAppConfigurationDeviceSummary
# To initialize your graph_client, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ManagedDeviceMobileAppConfigurationDeviceSummary(
odata_type = "#microsoft.graph.managedDeviceMobileAppConfigurationDeviceSummary",
pending_count = 12,
not_applicable_count = 2,
success_count = 12,
error_count = 10,
failed_count = 11,
last_update_date_time = "2016-12-31T23:58:21.6459442-08:00",
configuration_version = 4,
)
result = await graph_client.device_app_management.mobile_app_configurations.by_managed_device_mobile_app_configuration_id('managedDeviceMobileAppConfiguration-id').device_status_summary.patch(request_body)
Veja a seguir um exemplo da resposta. Observação: o objeto response mostrado aqui pode estar truncado por motivos de concisão. Todas as propriedades serão retornadas de uma chamada real.