UNPKG

@microsoft/msgraph-beta-sdk-admin

Version:
119 lines 6.91 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 updatableAssets property of the microsoft.graph.adminWindowsUpdates entity. */ export interface UpdatableAssetsRequestBuilder extends BaseRequestBuilder<UpdatableAssetsRequestBuilder> { /** * 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 updatableAssets property of the microsoft.graph.adminWindowsUpdates entity. * @param updatableAssetId The unique identifier of updatableAsset * @returns {UpdatableAssetItemRequestBuilder} */ byUpdatableAssetId(updatableAssetId: string): UpdatableAssetItemRequestBuilder; /** * Get a list of updatableAsset objects and their properties. Listing updatable assets returns updatableAsset resources of the following derived types: azureADDevice and updatableAssetGroup. Use list azureADDevice resources or list updatableAssetGroup resources to filter and get resources of only one of the derived types. * @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/adminwindowsupdates-list-updatableassets?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<UpdatableAssetsRequestBuilderGetQueryParameters> | undefined): Promise<UpdatableAssetCollectionResponse | undefined>; /** * Create a new updatableAssetGroup object. The updatableAssetGroup resource inherits from updatableAsset. * @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 * @see {@link https://learn.microsoft.com/graph/api/adminwindowsupdates-post-updatableassets-updatableassetgroup?view=graph-rest-beta|Find more info here} */ post(body: UpdatableAsset, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UpdatableAsset | undefined>; /** * Get a list of updatableAsset objects and their properties. Listing updatable assets returns updatableAsset resources of the following derived types: azureADDevice and updatableAssetGroup. Use list azureADDevice resources or list updatableAssetGroup resources to filter and get resources of only one of the derived types. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<UpdatableAssetsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create a new updatableAssetGroup object. The updatableAssetGroup resource inherits from updatableAsset. * @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; } /** * Get a list of updatableAsset objects and their properties. Listing updatable assets returns updatableAsset resources of the following derived types: azureADDevice and updatableAssetGroup. Use list azureADDevice resources or list updatableAssetGroup resources to filter and get resources of only one of the derived types. */ export interface UpdatableAssetsRequestBuilderGetQueryParameters { /** * 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 UpdatableAssetsRequestBuilderUriTemplate = "{+baseurl}/admin/windows/updates/updatableAssets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const UpdatableAssetsRequestBuilderNavigationMetadata: Record<Exclude<keyof UpdatableAssetsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const UpdatableAssetsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map