@microsoft/msgraph-beta-sdk-devicemanagement
Version:
DeviceManagement fluent API for Microsoft Graph
104 lines • 5.15 kB
TypeScript
import { type CloudPcDeviceImage, type CloudPcDeviceImageCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type CountRequestBuilder } from './count/index.js';
import { type GetSourceImagesRequestBuilder } from './getSourceImages/index.js';
import { type CloudPcDeviceImageItemRequestBuilder } 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 deviceImages property of the microsoft.graph.virtualEndpoint entity.
*/
export interface DeviceImagesRequestBuilder extends BaseRequestBuilder<DeviceImagesRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to call the getSourceImages method.
*/
get getSourceImages(): GetSourceImagesRequestBuilder;
/**
* Provides operations to manage the deviceImages property of the microsoft.graph.virtualEndpoint entity.
* @param cloudPcDeviceImageId The unique identifier of cloudPcDeviceImage
* @returns {CloudPcDeviceImageItemRequestBuilder}
*/
byCloudPcDeviceImageId(cloudPcDeviceImageId: string): CloudPcDeviceImageItemRequestBuilder;
/**
* List the properties and relationships of the cloudPcDeviceImage objects (OS images) uploaded to Cloud PC.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<CloudPcDeviceImageCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/virtualendpoint-list-deviceimages?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<DeviceImagesRequestBuilderGetQueryParameters> | undefined): Promise<CloudPcDeviceImageCollectionResponse | undefined>;
/**
* Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<CloudPcDeviceImage>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/virtualendpoint-post-deviceimages?view=graph-rest-beta|Find more info here}
*/
post(body: CloudPcDeviceImage, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CloudPcDeviceImage | undefined>;
/**
* List the properties and relationships of the cloudPcDeviceImage objects (OS images) uploaded to Cloud PC.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceImagesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Create a new cloudPcDeviceImage object. Upload a custom OS image that you can later provision on Cloud PCs.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: CloudPcDeviceImage, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* List the properties and relationships of the cloudPcDeviceImage objects (OS images) uploaded to Cloud PC.
*/
export interface DeviceImagesRequestBuilderGetQueryParameters {
/**
* 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 DeviceImagesRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/deviceImages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const DeviceImagesRequestBuilderNavigationMetadata: Record<Exclude<keyof DeviceImagesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const DeviceImagesRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map