UNPKG

@microsoft/msgraph-beta-sdk-admin

Version:
84 lines 5.21 kB
import { type ServiceUpdateMessage } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type AttachmentsRequestBuilder } from './attachments/index.js'; import { type AttachmentsArchiveRequestBuilder } from './attachmentsArchive/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the messages property of the microsoft.graph.serviceAnnouncement entity. */ export interface ServiceUpdateMessageItemRequestBuilder extends BaseRequestBuilder<ServiceUpdateMessageItemRequestBuilder> { /** * Provides operations to manage the attachments property of the microsoft.graph.serviceUpdateMessage entity. */ get attachments(): AttachmentsRequestBuilder; /** * Provides operations to manage the media for the admin entity. */ get attachmentsArchive(): AttachmentsArchiveRequestBuilder; /** * Delete navigation property messages for admin * @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 */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ServiceUpdateMessage>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/serviceupdatemessage-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<ServiceUpdateMessageItemRequestBuilderGetQueryParameters> | undefined): Promise<ServiceUpdateMessage | undefined>; /** * Update the navigation property messages in admin * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ServiceUpdateMessage>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: ServiceUpdateMessage, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ServiceUpdateMessage | undefined>; /** * Delete navigation property messages for admin * @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 serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ServiceUpdateMessageItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property messages in admin * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: ServiceUpdateMessage, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant. */ export interface ServiceUpdateMessageItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const ServiceUpdateMessageItemRequestBuilderUriTemplate = "{+baseurl}/admin/serviceAnnouncement/messages/{serviceUpdateMessage%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const ServiceUpdateMessageItemRequestBuilderNavigationMetadata: Record<Exclude<keyof ServiceUpdateMessageItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const ServiceUpdateMessageItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map