UNPKG

@microsoft/msgraph-beta-sdk-directory

Version:
97 lines 5.76 kB
import { type DeviceTemplate } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CreateDeviceFromTemplateRequestBuilder } from './createDeviceFromTemplate/index.js'; import { type DeviceInstancesRequestBuilder } from './deviceInstances/index.js'; import { type DeviceInstancesWithDeviceIdRequestBuilder } from './deviceInstancesWithDeviceId/index.js'; import { type OwnersRequestBuilder } from './owners/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the deviceTemplates property of the microsoft.graph.template entity. */ export interface DeviceTemplateItemRequestBuilder extends BaseRequestBuilder<DeviceTemplateItemRequestBuilder> { /** * Provides operations to call the createDeviceFromTemplate method. */ get createDeviceFromTemplate(): CreateDeviceFromTemplateRequestBuilder; /** * Provides operations to manage the deviceInstances property of the microsoft.graph.deviceTemplate entity. */ get deviceInstances(): DeviceInstancesRequestBuilder; /** * Provides operations to manage the owners property of the microsoft.graph.deviceTemplate entity. */ get owners(): OwnersRequestBuilder; /** * Delete a registered deviceTemplate. You must first delete all devices linked to the template before deleting the template itself. Only registered owners of the template can perform this operation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/devicetemplate-delete?view=graph-rest-beta|Find more info here} */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Provides operations to manage the deviceInstances property of the microsoft.graph.deviceTemplate entity. * @param deviceId Alternate key of device * @returns {DeviceInstancesWithDeviceIdRequestBuilder} */ deviceInstancesWithDeviceId(deviceId: string | undefined): DeviceInstancesWithDeviceIdRequestBuilder; /** * Get the properties and relationships of a deviceTemplate object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<DeviceTemplate>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/devicetemplate-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<DeviceTemplateItemRequestBuilderGetQueryParameters> | undefined): Promise<DeviceTemplate | undefined>; /** * Update the navigation property deviceTemplates in directory * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<DeviceTemplate>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: DeviceTemplate, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceTemplate | undefined>; /** * Delete a registered deviceTemplate. You must first delete all devices linked to the template before deleting the template itself. Only registered owners of the template can perform this operation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Get the properties and relationships of a deviceTemplate object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceTemplateItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property deviceTemplates in directory * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: DeviceTemplate, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get the properties and relationships of a deviceTemplate object. */ export interface DeviceTemplateItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const DeviceTemplateItemRequestBuilderUriTemplate = "{+baseurl}/directory/templates/deviceTemplates/{deviceTemplate%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const DeviceTemplateItemRequestBuilderNavigationMetadata: Record<Exclude<keyof DeviceTemplateItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const DeviceTemplateItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map