UNPKG

@microsoft/msgraph-beta-sdk-print

Version:
96 lines 6.05 kB
import { type PrinterShare } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type AllowedGroupsRequestBuilder } from './allowedGroups/index.js'; import { type AllowedUsersRequestBuilder } from './allowedUsers/index.js'; import { type JobsRequestBuilder } from './jobs/index.js'; import { type PrinterRequestBuilder } from './printer/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the shares property of the microsoft.graph.print entity. */ export interface PrinterShareItemRequestBuilder extends BaseRequestBuilder<PrinterShareItemRequestBuilder> { /** * Provides operations to manage the allowedGroups property of the microsoft.graph.printerShare entity. */ get allowedGroups(): AllowedGroupsRequestBuilder; /** * Provides operations to manage the allowedUsers property of the microsoft.graph.printerShare entity. */ get allowedUsers(): AllowedUsersRequestBuilder; /** * Provides operations to manage the jobs property of the microsoft.graph.printerBase entity. */ get jobs(): JobsRequestBuilder; /** * Provides operations to manage the printer property of the microsoft.graph.printerShare entity. */ get printer(): PrinterRequestBuilder; /** * Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. * @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/printershare-delete?view=graph-rest-beta|Find more info here} */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Retrieve the properties and relationships of a printer share. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<PrinterShare>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/printershare-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<PrinterShareItemRequestBuilderGetQueryParameters> | undefined): Promise<PrinterShare | undefined>; /** * Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<PrinterShare>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/printershare-update?view=graph-rest-beta|Find more info here} */ patch(body: PrinterShare, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<PrinterShare | undefined>; /** * Delete a printer share (unshare the associated printer). This action can't be undone. If the printer is shared again in the future, any Windows users who had previously installed the printer needs to discover and reinstall it. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Retrieve the properties and relationships of a printer share. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<PrinterShareItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the properties of a printer share. This method can be used to swap printers. For example, if a physical printer device breaks, an administrator can register a new printer device and update this printerShare to point to the new printer without requiring users to take any action. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: PrinterShare, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Retrieve the properties and relationships of a printer share. */ export interface PrinterShareItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const PrinterShareItemRequestBuilderUriTemplate = "{+baseurl}/print/shares/{printerShare%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const PrinterShareItemRequestBuilderNavigationMetadata: Record<Exclude<keyof PrinterShareItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const PrinterShareItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map