POST https://graph.microsoft.com/v1.0/deviceManagement/windowsInformationProtectionAppLearningSummaries
Content-type: application/json
Content-length: 191
{
"@odata.type": "#microsoft.graph.windowsInformationProtectionAppLearningSummary",
"applicationName": "Application Name value",
"applicationType": "desktop",
"deviceCount": 11
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new WindowsInformationProtectionAppLearningSummary
{
OdataType = "#microsoft.graph.windowsInformationProtectionAppLearningSummary",
ApplicationName = "Application Name value",
ApplicationType = ApplicationType.Desktop,
DeviceCount = 11,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.WindowsInformationProtectionAppLearningSummaries.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphmodels "github.com/microsoftgraph/msgraph-sdk-go/models"
//other-imports
)
requestBody := graphmodels.NewWindowsInformationProtectionAppLearningSummary()
applicationName := "Application Name value"
requestBody.SetApplicationName(&applicationName)
applicationType := graphmodels.DESKTOP_APPLICATIONTYPE
requestBody.SetApplicationType(&applicationType)
deviceCount := int32(11)
requestBody.SetDeviceCount(&deviceCount)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
windowsInformationProtectionAppLearningSummaries, err := graphClient.DeviceManagement().WindowsInformationProtectionAppLearningSummaries().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
WindowsInformationProtectionAppLearningSummary windowsInformationProtectionAppLearningSummary = new WindowsInformationProtectionAppLearningSummary();
windowsInformationProtectionAppLearningSummary.setOdataType("#microsoft.graph.windowsInformationProtectionAppLearningSummary");
windowsInformationProtectionAppLearningSummary.setApplicationName("Application Name value");
windowsInformationProtectionAppLearningSummary.setApplicationType(ApplicationType.Desktop);
windowsInformationProtectionAppLearningSummary.setDeviceCount(11);
WindowsInformationProtectionAppLearningSummary result = graphClient.deviceManagement().windowsInformationProtectionAppLearningSummaries().post(windowsInformationProtectionAppLearningSummary);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\WindowsInformationProtectionAppLearningSummary;
use Microsoft\Graph\Generated\Models\ApplicationType;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new WindowsInformationProtectionAppLearningSummary();
$requestBody->setOdataType('#microsoft.graph.windowsInformationProtectionAppLearningSummary');
$requestBody->setApplicationName('Application Name value');
$requestBody->setApplicationType(new ApplicationType('desktop'));
$requestBody->setDeviceCount(11);
$result = $graphServiceClient->deviceManagement()->windowsInformationProtectionAppLearningSummaries()->post($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.windows_information_protection_app_learning_summary import WindowsInformationProtectionAppLearningSummary
from msgraph.generated.models.application_type import ApplicationType
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = WindowsInformationProtectionAppLearningSummary(
odata_type = "#microsoft.graph.windowsInformationProtectionAppLearningSummary",
application_name = "Application Name value",
application_type = ApplicationType.Desktop,
device_count = 11,
)
result = await graph_client.device_management.windows_information_protection_app_learning_summaries.post(request_body)
Aquí tiene un ejemplo de la respuesta. Nota: Es posible que el objeto de respuesta que aparezca aquí esté truncado para abreviar. Todas las propiedades se devolverán desde una llamada real.