@microsoft/msgraph-beta-sdk-policies
Version:
Policies fluent API for Microsoft Graph
99 lines • 4.78 kB
TypeScript
import { type B2bManagementPolicy, type B2bManagementPolicyCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type CountRequestBuilder } from './count/index.js';
import { type B2bManagementPolicyItemRequestBuilder } 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 b2bManagementPolicies property of the microsoft.graph.policyRoot entity.
*/
export interface B2bManagementPoliciesRequestBuilder extends BaseRequestBuilder<B2bManagementPoliciesRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to manage the b2bManagementPolicies property of the microsoft.graph.policyRoot entity.
* @param b2bManagementPolicyId The unique identifier of b2bManagementPolicy
* @returns {B2bManagementPolicyItemRequestBuilder}
*/
byB2bManagementPolicyId(b2bManagementPolicyId: string): B2bManagementPolicyItemRequestBuilder;
/**
* Get a list of the b2bManagementPolicy objects and their properties.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<B2bManagementPolicyCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/policyroot-list-b2bmanagementpolicies?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<B2bManagementPoliciesRequestBuilderGetQueryParameters> | undefined): Promise<B2bManagementPolicyCollectionResponse | undefined>;
/**
* Create a new 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/policyroot-post-b2bmanagementpolicies?view=graph-rest-beta|Find more info here}
*/
post(body: B2bManagementPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<B2bManagementPolicy | undefined>;
/**
* Get a list of the b2bManagementPolicy objects and their properties.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<B2bManagementPoliciesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Create a new b2bManagementPolicy object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: B2bManagementPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get a list of the b2bManagementPolicy objects and their properties.
*/
export interface B2bManagementPoliciesRequestBuilderGetQueryParameters {
/**
* 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 B2bManagementPoliciesRequestBuilderUriTemplate = "{+baseurl}/policies/b2bManagementPolicies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const B2bManagementPoliciesRequestBuilderNavigationMetadata: Record<Exclude<keyof B2bManagementPoliciesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const B2bManagementPoliciesRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map