UNPKG

@microsoft/msgraph-beta-sdk-admin

Version:
118 lines 5.95 kB
import { type UpdatableAsset, type UpdatableAssetCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/windowsUpdates/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type UpdatableAssetItemRequestBuilder } from './item/index.js'; import { type MicrosoftGraphWindowsUpdatesEnrollAssetsRequestBuilder } from './microsoftGraphWindowsUpdatesEnrollAssets/index.js'; import { type MicrosoftGraphWindowsUpdatesEnrollAssetsByIdRequestBuilder } from './microsoftGraphWindowsUpdatesEnrollAssetsById/index.js'; import { type MicrosoftGraphWindowsUpdatesUnenrollAssetsRequestBuilder } from './microsoftGraphWindowsUpdatesUnenrollAssets/index.js'; import { type MicrosoftGraphWindowsUpdatesUnenrollAssetsByIdRequestBuilder } from './microsoftGraphWindowsUpdatesUnenrollAssetsById/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the exclusions property of the microsoft.graph.windowsUpdates.deploymentAudience entity. */ export interface ExclusionsRequestBuilder extends BaseRequestBuilder<ExclusionsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to call the enrollAssets method. */ get microsoftGraphWindowsUpdatesEnrollAssets(): MicrosoftGraphWindowsUpdatesEnrollAssetsRequestBuilder; /** * Provides operations to call the enrollAssetsById method. */ get microsoftGraphWindowsUpdatesEnrollAssetsById(): MicrosoftGraphWindowsUpdatesEnrollAssetsByIdRequestBuilder; /** * Provides operations to call the unenrollAssets method. */ get microsoftGraphWindowsUpdatesUnenrollAssets(): MicrosoftGraphWindowsUpdatesUnenrollAssetsRequestBuilder; /** * Provides operations to call the unenrollAssetsById method. */ get microsoftGraphWindowsUpdatesUnenrollAssetsById(): MicrosoftGraphWindowsUpdatesUnenrollAssetsByIdRequestBuilder; /** * Provides operations to manage the exclusions property of the microsoft.graph.windowsUpdates.deploymentAudience entity. * @param updatableAssetId The unique identifier of updatableAsset * @returns {UpdatableAssetItemRequestBuilder} */ byUpdatableAssetId(updatableAssetId: string): UpdatableAssetItemRequestBuilder; /** * List the updatableAsset resources that are excluded from a deploymentAudience. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<UpdatableAssetCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/windowsupdates-deploymentaudience-list-exclusions?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<ExclusionsRequestBuilderGetQueryParameters> | undefined): Promise<UpdatableAssetCollectionResponse | undefined>; /** * Create new navigation property to exclusions for admin * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<UpdatableAsset>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ post(body: UpdatableAsset, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UpdatableAsset | undefined>; /** * List the updatableAsset resources that are excluded from a deploymentAudience. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ExclusionsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create new navigation property to exclusions for admin * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: UpdatableAsset, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * List the updatableAsset resources that are excluded from a deploymentAudience. */ export interface ExclusionsRequestBuilderGetQueryParameters { /** * 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 ExclusionsRequestBuilderUriTemplate = "{+baseurl}/admin/windows/updates/deploymentAudiences/{deploymentAudience%2Did}/exclusions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const ExclusionsRequestBuilderNavigationMetadata: Record<Exclude<keyof ExclusionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const ExclusionsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map