UNPKG

@microsoft/msgraph-beta-sdk-policies

Version:
81 lines 4.71 kB
import { type B2bManagementPolicy } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type AppliesToRequestBuilder } from './appliesTo/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the b2bManagementPolicies property of the microsoft.graph.policyRoot entity. */ export interface B2bManagementPolicyItemRequestBuilder extends BaseRequestBuilder<B2bManagementPolicyItemRequestBuilder> { /** * Provides operations to manage the appliesTo property of the microsoft.graph.stsPolicy entity. */ get appliesTo(): AppliesToRequestBuilder; /** * Delete a b2bManagementPolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/policyroot-delete-b2bmanagementpolicies?view=graph-rest-beta|Find more info here} */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Read the properties and relationships of b2bManagementPolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<B2bManagementPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/b2bmanagementpolicy-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<B2bManagementPolicyItemRequestBuilderGetQueryParameters> | undefined): Promise<B2bManagementPolicy | undefined>; /** * Update the properties of a b2bManagementPolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<B2bManagementPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/b2bmanagementpolicy-update?view=graph-rest-beta|Find more info here} */ patch(body: B2bManagementPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<B2bManagementPolicy | undefined>; /** * Delete a b2bManagementPolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Read the properties and relationships of b2bManagementPolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<B2bManagementPolicyItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the properties of a b2bManagementPolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: B2bManagementPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Read the properties and relationships of b2bManagementPolicy object. */ export interface B2bManagementPolicyItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const B2bManagementPolicyItemRequestBuilderUriTemplate = "{+baseurl}/policies/b2bManagementPolicies/{b2bManagementPolicy%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const B2bManagementPolicyItemRequestBuilderNavigationMetadata: Record<Exclude<keyof B2bManagementPolicyItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const B2bManagementPolicyItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map