Class AssignmentPoliciesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.identitygovernance.entitlementmanagement.assignmentpolicies.AssignmentPoliciesRequestBuilder
@Generated("com.microsoft.kiota")
public class AssignmentPoliciesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the assignmentPolicies property of the microsoft.graph.entitlementManagement entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionAssignmentPoliciesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAssignmentPoliciesRequestBuilderand sets the default values.AssignmentPoliciesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAssignmentPoliciesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyAccessPackageAssignmentPolicyId(String accessPackageAssignmentPolicyId) Provides operations to manage the assignmentPolicies property of the microsoft.graph.entitlementManagement entity.count()Provides operations to count the resources in the collection.get()Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management.get(Consumer<AssignmentPoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management.Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management.post(AccessPackageAssignmentPolicy body, Consumer<AssignmentPoliciesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management.com.microsoft.kiota.RequestInformationRetrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<AssignmentPoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management.com.microsoft.kiota.RequestInformationCreate a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management.com.microsoft.kiota.RequestInformationtoPostRequestInformation(AccessPackageAssignmentPolicy body, Consumer<AssignmentPoliciesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
AssignmentPoliciesRequestBuilder
public AssignmentPoliciesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAssignmentPoliciesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
AssignmentPoliciesRequestBuilder
public AssignmentPoliciesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAssignmentPoliciesRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byAccessPackageAssignmentPolicyId
@Nonnull public AccessPackageAssignmentPolicyItemRequestBuilder byAccessPackageAssignmentPolicyId(@Nonnull String accessPackageAssignmentPolicyId) Provides operations to manage the assignmentPolicies property of the microsoft.graph.entitlementManagement entity.- Parameters:
accessPackageAssignmentPolicyId- The unique identifier of accessPackageAssignmentPolicy- Returns:
- a
AccessPackageAssignmentPolicyItemRequestBuilder
-
get
Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=assignmentPolicies as a query parameter.- Returns:
- a
AccessPackageAssignmentPolicyCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public AccessPackageAssignmentPolicyCollectionResponse get(@Nullable Consumer<AssignmentPoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=assignmentPolicies as a query parameter.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
AccessPackageAssignmentPolicyCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management. The request includes a reference to the accessPackage that contains this policy, which must already exist.- Parameters:
body- The request body- Returns:
- a
AccessPackageAssignmentPolicy - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public AccessPackageAssignmentPolicy post(@Nonnull AccessPackageAssignmentPolicy body, @Nullable Consumer<AssignmentPoliciesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management. The request includes a reference to the accessPackage that contains this policy, which must already exist.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
AccessPackageAssignmentPolicy - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=assignmentPolicies as a query parameter.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<AssignmentPoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of accessPackageAssignmentPolicy objects in Microsoft Entra entitlement management. If the delegated user is in a directory role, the resulting list includes all the assignment policies that the caller has access to read, across all catalogs and access packages. If the delegated user is an access package manager or catalog owner, they should instead retrieve the policies for the access packages they can read with list accessPackages by including $expand=assignmentPolicies as a query parameter.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull AccessPackageAssignmentPolicy body) Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management. The request includes a reference to the accessPackage that contains this policy, which must already exist.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull AccessPackageAssignmentPolicy body, @Nullable Consumer<AssignmentPoliciesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new accessPackageAssignmentPolicy object in Microsoft Entra entitlement management. The request includes a reference to the accessPackage that contains this policy, which must already exist.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
AssignmentPoliciesRequestBuilder
-