@microsoft/msgraph-beta-sdk-print
Version:
Print fluent API for Microsoft Graph
116 lines • 5.93 kB
TypeScript
import { type Printer } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type ConnectorsRequestBuilder } from './connectors/index.js';
import { type GetCapabilitiesRequestBuilder } from './getCapabilities/index.js';
import { type JobsRequestBuilder } from './jobs/index.js';
import { type ResetDefaultsRequestBuilder } from './resetDefaults/index.js';
import { type RestoreFactoryDefaultsRequestBuilder } from './restoreFactoryDefaults/index.js';
import { type ShareRequestBuilder } from './share/index.js';
import { type SharesRequestBuilder } from './shares/index.js';
import { type TaskTriggersRequestBuilder } from './taskTriggers/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the printers property of the microsoft.graph.print entity.
*/
export interface PrinterItemRequestBuilder extends BaseRequestBuilder<PrinterItemRequestBuilder> {
/**
* Provides operations to manage the connectors property of the microsoft.graph.printer entity.
*/
get connectors(): ConnectorsRequestBuilder;
/**
* Provides operations to call the getCapabilities method.
*/
get getCapabilities(): GetCapabilitiesRequestBuilder;
/**
* Provides operations to manage the jobs property of the microsoft.graph.printerBase entity.
*/
get jobs(): JobsRequestBuilder;
/**
* Provides operations to call the resetDefaults method.
*/
get resetDefaults(): ResetDefaultsRequestBuilder;
/**
* Provides operations to call the restoreFactoryDefaults method.
*/
get restoreFactoryDefaults(): RestoreFactoryDefaultsRequestBuilder;
/**
* Provides operations to manage the share property of the microsoft.graph.printer entity.
*/
get share(): ShareRequestBuilder;
/**
* Provides operations to manage the shares property of the microsoft.graph.printer entity.
*/
get shares(): SharesRequestBuilder;
/**
* Provides operations to manage the taskTriggers property of the microsoft.graph.printer entity.
*/
get taskTriggers(): TaskTriggersRequestBuilder;
/**
* Delete (unregister) a printer.
* @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/printer-delete?view=graph-rest-beta|Find more info here}
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Retrieve the properties and relationships of a printer object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Printer>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/printer-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<PrinterItemRequestBuilderGetQueryParameters> | undefined): Promise<Printer | undefined>;
/**
* Update the properties of a printer object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Printer>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/printer-update?view=graph-rest-beta|Find more info here}
*/
patch(body: Printer, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Printer | undefined>;
/**
* Delete (unregister) a printer.
* @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 object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<PrinterItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the properties of a printer object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: Printer, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Retrieve the properties and relationships of a printer object.
*/
export interface PrinterItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const PrinterItemRequestBuilderUriTemplate = "{+baseurl}/print/printers/{printer%2Did}{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const PrinterItemRequestBuilderNavigationMetadata: Record<Exclude<keyof PrinterItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const PrinterItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map