|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +// Generated by Microsoft Kiota |
| 4 | +// @ts-ignore |
| 5 | +import { createExchangeAdminFromDiscriminatorValue, serializeExchangeAdmin, type ExchangeAdmin } from '@microsoft/msgraph-beta-sdk/models/index.js'; |
| 6 | +// @ts-ignore |
| 7 | +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js'; |
| 8 | +// @ts-ignore |
| 9 | +import { MailboxesRequestBuilderNavigationMetadata, MailboxesRequestBuilderRequestsMetadata, type MailboxesRequestBuilder } from './mailboxes/index.js'; |
| 10 | +// @ts-ignore |
| 11 | +import { MessageTracesRequestBuilderNavigationMetadata, MessageTracesRequestBuilderRequestsMetadata, type MessageTracesRequestBuilder } from './messageTraces/index.js'; |
| 12 | +// @ts-ignore |
| 13 | +import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; |
| 14 | + |
| 15 | +/** |
| 16 | + * Provides operations to manage the exchange property of the microsoft.graph.admin entity. |
| 17 | + */ |
| 18 | +export interface ExchangeRequestBuilder extends BaseRequestBuilder<ExchangeRequestBuilder> { |
| 19 | + /** |
| 20 | + * Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity. |
| 21 | + * @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport |
| 22 | + */ |
| 23 | + get mailboxes(): MailboxesRequestBuilder; |
| 24 | + /** |
| 25 | + * Provides operations to manage the messageTraces property of the microsoft.graph.exchangeAdmin entity. |
| 26 | + * @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport |
| 27 | + */ |
| 28 | + get messageTraces(): MessageTracesRequestBuilder; |
| 29 | + /** |
| 30 | + * Delete navigation property exchange for admin |
| 31 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 32 | + * @throws {ODataError} error when the service returns a 4XX or 5XX status code |
| 33 | + * @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport |
| 34 | + */ |
| 35 | + delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>; |
| 36 | + /** |
| 37 | + * A container for the Exchange admin functionality. Read-only. |
| 38 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 39 | + * @returns {Promise<ExchangeAdmin>} |
| 40 | + * @throws {ODataError} error when the service returns a 4XX or 5XX status code |
| 41 | + * @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport |
| 42 | + */ |
| 43 | + get(requestConfiguration?: RequestConfiguration<ExchangeRequestBuilderGetQueryParameters> | undefined) : Promise<ExchangeAdmin | undefined>; |
| 44 | + /** |
| 45 | + * Update the navigation property exchange in admin |
| 46 | + * @param body The request body |
| 47 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 48 | + * @returns {Promise<ExchangeAdmin>} |
| 49 | + * @throws {ODataError} error when the service returns a 4XX or 5XX status code |
| 50 | + * @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport |
| 51 | + */ |
| 52 | + patch(body: ExchangeAdmin, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ExchangeAdmin | undefined>; |
| 53 | + /** |
| 54 | + * Delete navigation property exchange for admin |
| 55 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 56 | + * @returns {RequestInformation} |
| 57 | + * @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport |
| 58 | + */ |
| 59 | + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation; |
| 60 | + /** |
| 61 | + * A container for the Exchange admin functionality. Read-only. |
| 62 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 63 | + * @returns {RequestInformation} |
| 64 | + * @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport |
| 65 | + */ |
| 66 | + toGetRequestInformation(requestConfiguration?: RequestConfiguration<ExchangeRequestBuilderGetQueryParameters> | undefined) : RequestInformation; |
| 67 | + /** |
| 68 | + * Update the navigation property exchange in admin |
| 69 | + * @param body The request body |
| 70 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 71 | + * @returns {RequestInformation} |
| 72 | + * @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport |
| 73 | + */ |
| 74 | + toPatchRequestInformation(body: ExchangeAdmin, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation; |
| 75 | +} |
| 76 | +/** |
| 77 | + * A container for the Exchange admin functionality. Read-only. |
| 78 | + */ |
| 79 | +export interface ExchangeRequestBuilderGetQueryParameters { |
| 80 | + /** |
| 81 | + * Expand related entities |
| 82 | + */ |
| 83 | + expand?: string[]; |
| 84 | + /** |
| 85 | + * Select properties to be returned |
| 86 | + */ |
| 87 | + select?: string[]; |
| 88 | +} |
| 89 | +/** |
| 90 | + * Uri template for the request builder. |
| 91 | + */ |
| 92 | +export const ExchangeRequestBuilderUriTemplate = "{+baseurl}/admin/exchange{?%24expand,%24select}"; |
| 93 | +/** |
| 94 | + * Mapper for query parameters from symbol name to serialization name represented as a constant. |
| 95 | + */ |
| 96 | +const ExchangeRequestBuilderGetQueryParametersMapper: Record<string, string> = { |
| 97 | + "expand": "%24expand", |
| 98 | + "select": "%24select", |
| 99 | +}; |
| 100 | +/** |
| 101 | + * Metadata for all the navigation properties in the request builder. |
| 102 | + */ |
| 103 | +export const ExchangeRequestBuilderNavigationMetadata: Record<Exclude<keyof ExchangeRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = { |
| 104 | + mailboxes: { |
| 105 | + requestsMetadata: MailboxesRequestBuilderRequestsMetadata, |
| 106 | + navigationMetadata: MailboxesRequestBuilderNavigationMetadata, |
| 107 | + }, |
| 108 | + messageTraces: { |
| 109 | + requestsMetadata: MessageTracesRequestBuilderRequestsMetadata, |
| 110 | + navigationMetadata: MessageTracesRequestBuilderNavigationMetadata, |
| 111 | + }, |
| 112 | +}; |
| 113 | +/** |
| 114 | + * Metadata for all the requests in the request builder. |
| 115 | + */ |
| 116 | +export const ExchangeRequestBuilderRequestsMetadata: RequestsMetadata = { |
| 117 | + delete: { |
| 118 | + uriTemplate: ExchangeRequestBuilderUriTemplate, |
| 119 | + responseBodyContentType: "application/json", |
| 120 | + errorMappings: { |
| 121 | + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, |
| 122 | + }, |
| 123 | + adapterMethodName: "sendNoResponseContent", |
| 124 | + }, |
| 125 | + get: { |
| 126 | + uriTemplate: ExchangeRequestBuilderUriTemplate, |
| 127 | + responseBodyContentType: "application/json", |
| 128 | + errorMappings: { |
| 129 | + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, |
| 130 | + }, |
| 131 | + adapterMethodName: "send", |
| 132 | + responseBodyFactory: createExchangeAdminFromDiscriminatorValue, |
| 133 | + queryParametersMapper: ExchangeRequestBuilderGetQueryParametersMapper, |
| 134 | + }, |
| 135 | + patch: { |
| 136 | + uriTemplate: ExchangeRequestBuilderUriTemplate, |
| 137 | + responseBodyContentType: "application/json", |
| 138 | + errorMappings: { |
| 139 | + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, |
| 140 | + }, |
| 141 | + adapterMethodName: "send", |
| 142 | + responseBodyFactory: createExchangeAdminFromDiscriminatorValue, |
| 143 | + requestBodyContentType: "application/json", |
| 144 | + requestBodySerializer: serializeExchangeAdmin, |
| 145 | + requestInformationContentSetMethod: "setContentFromParsable", |
| 146 | + }, |
| 147 | +}; |
| 148 | +/* tslint:enable */ |
| 149 | +/* eslint-enable */ |
0 commit comments