@microsoft/msgraph-sdk-policies
Version:
Policies fluent API for Microsoft Graph
42 lines • 2.33 kB
TypeScript
import { type UnifiedRoleManagementPolicy } from '@microsoft/msgraph-sdk/models/index.js';
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the policy property of the microsoft.graph.unifiedRoleManagementPolicyAssignment entity.
*/
export interface PolicyRequestBuilder extends BaseRequestBuilder<PolicyRequestBuilder> {
/**
* The policy that's associated with a policy assignment. Supports $expand and a nested $expand of the rules and effectiveRules relationships for the policy.
* @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
*/
get(requestConfiguration?: RequestConfiguration<PolicyRequestBuilderGetQueryParameters> | undefined): Promise<UnifiedRoleManagementPolicy | undefined>;
/**
* The policy that's associated with a policy assignment. Supports $expand and a nested $expand of the rules and effectiveRules relationships for the policy.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<PolicyRequestBuilderGetQueryParameters> | undefined): RequestInformation;
}
/**
* The policy that's associated with a policy assignment. Supports $expand and a nested $expand of the rules and effectiveRules relationships for the policy.
*/
export interface PolicyRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const PolicyRequestBuilderUriTemplate = "{+baseurl}/policies/roleManagementPolicyAssignments/{unifiedRoleManagementPolicyAssignment%2Did}/policy{?%24expand,%24select}";
/**
* Metadata for all the requests in the request builder.
*/
export declare const PolicyRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map