UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
126 lines 5.91 kB
import { type CloudPcSnapshot, type CloudPcSnapshotCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type GetStorageAccountsWithSubscriptionIdRequestBuilder } from './getStorageAccountsWithSubscriptionId/index.js'; import { type GetSubscriptionsRequestBuilder } from './getSubscriptions/index.js'; import { type ImportSnapshotRequestBuilder } from './importSnapshot/index.js'; import { type CloudPcSnapshotItemRequestBuilder } from './item/index.js'; import { type PurgeImportedSnapshotRequestBuilder } from './purgeImportedSnapshot/index.js'; import { type RetrieveSnapshotImportResultsWithSnapshotIdRequestBuilder } from './retrieveSnapshotImportResultsWithSnapshotId/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the snapshots property of the microsoft.graph.virtualEndpoint entity. */ export interface SnapshotsRequestBuilder extends BaseRequestBuilder<SnapshotsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to call the getSubscriptions method. */ get getSubscriptions(): GetSubscriptionsRequestBuilder; /** * Provides operations to call the importSnapshot method. */ get importSnapshot(): ImportSnapshotRequestBuilder; /** * Provides operations to call the purgeImportedSnapshot method. */ get purgeImportedSnapshot(): PurgeImportedSnapshotRequestBuilder; /** * Provides operations to manage the snapshots property of the microsoft.graph.virtualEndpoint entity. * @param cloudPcSnapshotId The unique identifier of cloudPcSnapshot * @returns {CloudPcSnapshotItemRequestBuilder} */ byCloudPcSnapshotId(cloudPcSnapshotId: string): CloudPcSnapshotItemRequestBuilder; /** * Cloud PC snapshots. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<CloudPcSnapshotCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<SnapshotsRequestBuilderGetQueryParameters> | undefined): Promise<CloudPcSnapshotCollectionResponse | undefined>; /** * Provides operations to call the getStorageAccounts method. * @param subscriptionId Usage: subscriptionId='{subscriptionId}' * @returns {GetStorageAccountsWithSubscriptionIdRequestBuilder} */ getStorageAccountsWithSubscriptionId(subscriptionId: string | undefined): GetStorageAccountsWithSubscriptionIdRequestBuilder; /** * Create new navigation property to snapshots for deviceManagement * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<CloudPcSnapshot>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ post(body: CloudPcSnapshot, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CloudPcSnapshot | undefined>; /** * Provides operations to call the retrieveSnapshotImportResults method. * @param snapshotId Usage: snapshotId='{snapshotId}' * @returns {RetrieveSnapshotImportResultsWithSnapshotIdRequestBuilder} */ retrieveSnapshotImportResultsWithSnapshotId(snapshotId: string | undefined): RetrieveSnapshotImportResultsWithSnapshotIdRequestBuilder; /** * Cloud PC snapshots. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SnapshotsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create new navigation property to snapshots for deviceManagement * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: CloudPcSnapshot, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Cloud PC snapshots. */ export interface SnapshotsRequestBuilderGetQueryParameters { /** * 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 SnapshotsRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/snapshots{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const SnapshotsRequestBuilderNavigationMetadata: Record<Exclude<keyof SnapshotsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const SnapshotsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map