@microsoft/msgraph-sdk-policies
Version:
Policies fluent API for Microsoft Graph
98 lines • 5.29 kB
TypeScript
import { type UnifiedRoleManagementPolicy, type UnifiedRoleManagementPolicyCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js';
import { type CountRequestBuilder } from './count/index.js';
import { type UnifiedRoleManagementPolicyItemRequestBuilder } from './item/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the roleManagementPolicies property of the microsoft.graph.policyRoot entity.
*/
export interface RoleManagementPoliciesRequestBuilder extends BaseRequestBuilder<RoleManagementPoliciesRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to manage the roleManagementPolicies property of the microsoft.graph.policyRoot entity.
* @param unifiedRoleManagementPolicyId The unique identifier of unifiedRoleManagementPolicy
* @returns {UnifiedRoleManagementPolicyItemRequestBuilder}
*/
byUnifiedRoleManagementPolicyId(unifiedRoleManagementPolicyId: string): UnifiedRoleManagementPolicyItemRequestBuilder;
/**
* Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<UnifiedRoleManagementPolicyCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/policyroot-list-rolemanagementpolicies?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<RoleManagementPoliciesRequestBuilderGetQueryParameters> | undefined): Promise<UnifiedRoleManagementPolicyCollectionResponse | undefined>;
/**
* Create new navigation property to roleManagementPolicies for policies
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<UnifiedRoleManagementPolicy>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
post(body: UnifiedRoleManagementPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UnifiedRoleManagementPolicy | undefined>;
/**
* Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RoleManagementPoliciesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Create new navigation property to roleManagementPolicies for policies
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: UnifiedRoleManagementPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get the details of the policies in PIM that can be applied to Microsoft Entra roles or group membership or ownership. To retrieve policies that apply to Azure RBAC, use the Azure REST PIM API for role management policies.
*/
export interface RoleManagementPoliciesRequestBuilderGetQueryParameters {
/**
* Include count of items
*/
count?: boolean;
/**
* Expand related entities
*/
expand?: string[];
/**
* Filter items by property values
*/
filter?: string;
/**
* Order items by property values
*/
orderby?: string[];
/**
* Search items by search phrases
*/
search?: string;
/**
* Select properties to be returned
*/
select?: string[];
/**
* Skip the first n items
*/
skip?: number;
/**
* Show only the first n items
*/
top?: number;
}
/**
* Uri template for the request builder.
*/
export declare const RoleManagementPoliciesRequestBuilderUriTemplate = "{+baseurl}/policies/roleManagementPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const RoleManagementPoliciesRequestBuilderNavigationMetadata: Record<Exclude<keyof RoleManagementPoliciesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const RoleManagementPoliciesRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map