UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
99 lines 4.67 kB
import { type BusinessScenario, type BusinessScenarioCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type BusinessScenarioItemRequestBuilder } 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 businessScenarios property of the microsoft.graph.solutionsRoot entity. */ export interface BusinessScenariosRequestBuilder extends BaseRequestBuilder<BusinessScenariosRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to manage the businessScenarios property of the microsoft.graph.solutionsRoot entity. * @param businessScenarioId The unique identifier of businessScenario * @returns {BusinessScenarioItemRequestBuilder} */ byBusinessScenarioId(businessScenarioId: string): BusinessScenarioItemRequestBuilder; /** * Get a list of all businessScenario objects in an organization. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<BusinessScenarioCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/solutionsroot-list-businessscenarios?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<BusinessScenariosRequestBuilderGetQueryParameters> | undefined): Promise<BusinessScenarioCollectionResponse | undefined>; /** * Create a new businessScenario object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<BusinessScenario>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/solutionsroot-post-businessscenarios?view=graph-rest-beta|Find more info here} */ post(body: BusinessScenario, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<BusinessScenario | undefined>; /** * Get a list of all businessScenario objects in an organization. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<BusinessScenariosRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create a new businessScenario object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: BusinessScenario, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get a list of all businessScenario objects in an organization. */ export interface BusinessScenariosRequestBuilderGetQueryParameters { /** * 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 BusinessScenariosRequestBuilderUriTemplate = "{+baseurl}/solutions/businessScenarios{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const BusinessScenariosRequestBuilderNavigationMetadata: Record<Exclude<keyof BusinessScenariosRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const BusinessScenariosRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map