// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.NetworkAccess.ForwardingPolicies["{forwardingPolicy-id}"].PolicyRules["{policyRule-id}"].PatchAsync(null);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
//other-imports
)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
policyRules, err := graphClient.NetworkAccess().ForwardingPolicies().ByForwardingPolicyId("forwardingPolicy-id").PolicyRules().ByPolicyRuleId("policyRule-id").Patch(context.Background(), nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.models.networkaccess.PolicyRule result = graphClient.networkAccess().forwardingPolicies().byForwardingPolicyId("{forwardingPolicy-id}").policyRules().byPolicyRuleId("{policyRule-id}").patch(null);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.network_access.forwarding_policies.by_forwarding_policy_id('forwardingPolicy-id').policy_rules.by_policy_rule_id('policyRule-id').patch(None)