|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +// Generated by Microsoft Kiota |
| 4 | +// @ts-ignore |
| 5 | +import { createRecoveryFromDiscriminatorValue, serializeRecovery, type Recovery } from '@microsoft/msgraph-sdk/models/entraRecoveryServices/index.js'; |
| 6 | +// @ts-ignore |
| 7 | +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; |
| 8 | +// @ts-ignore |
| 9 | +import { JobsRequestBuilderNavigationMetadata, JobsRequestBuilderRequestsMetadata, type JobsRequestBuilder } from './jobs/index.js'; |
| 10 | +// @ts-ignore |
| 11 | +import { SnapshotsRequestBuilderNavigationMetadata, SnapshotsRequestBuilderRequestsMetadata, type SnapshotsRequestBuilder } from './snapshots/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 recovery property of the microsoft.graph.directory entity. |
| 17 | + */ |
| 18 | +export interface RecoveryRequestBuilder extends BaseRequestBuilder<RecoveryRequestBuilder> { |
| 19 | + /** |
| 20 | + * Provides operations to manage the jobs property of the microsoft.graph.entraRecoveryServices.recovery entity. |
| 21 | + */ |
| 22 | + get jobs(): JobsRequestBuilder; |
| 23 | + /** |
| 24 | + * Provides operations to manage the snapshots property of the microsoft.graph.entraRecoveryServices.recovery entity. |
| 25 | + */ |
| 26 | + get snapshots(): SnapshotsRequestBuilder; |
| 27 | + /** |
| 28 | + * Delete navigation property recovery for directory |
| 29 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 30 | + * @throws {ODataError} error when the service returns a 4XX or 5XX status code |
| 31 | + */ |
| 32 | + delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>; |
| 33 | + /** |
| 34 | + * Get recovery from directory |
| 35 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 36 | + * @returns {Promise<Recovery>} |
| 37 | + * @throws {ODataError} error when the service returns a 4XX or 5XX status code |
| 38 | + */ |
| 39 | + get(requestConfiguration?: RequestConfiguration<RecoveryRequestBuilderGetQueryParameters> | undefined) : Promise<Recovery | undefined>; |
| 40 | + /** |
| 41 | + * Update the navigation property recovery in directory |
| 42 | + * @param body The request body |
| 43 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 44 | + * @returns {Promise<Recovery>} |
| 45 | + * @throws {ODataError} error when the service returns a 4XX or 5XX status code |
| 46 | + */ |
| 47 | + patch(body: Recovery, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<Recovery | undefined>; |
| 48 | + /** |
| 49 | + * Delete navigation property recovery for directory |
| 50 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 51 | + * @returns {RequestInformation} |
| 52 | + */ |
| 53 | + toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation; |
| 54 | + /** |
| 55 | + * Get recovery from directory |
| 56 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 57 | + * @returns {RequestInformation} |
| 58 | + */ |
| 59 | + toGetRequestInformation(requestConfiguration?: RequestConfiguration<RecoveryRequestBuilderGetQueryParameters> | undefined) : RequestInformation; |
| 60 | + /** |
| 61 | + * Update the navigation property recovery in directory |
| 62 | + * @param body The request body |
| 63 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 64 | + * @returns {RequestInformation} |
| 65 | + */ |
| 66 | + toPatchRequestInformation(body: Recovery, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation; |
| 67 | +} |
| 68 | +/** |
| 69 | + * Get recovery from directory |
| 70 | + */ |
| 71 | +export interface RecoveryRequestBuilderGetQueryParameters { |
| 72 | + /** |
| 73 | + * Expand related entities |
| 74 | + */ |
| 75 | + expand?: string[]; |
| 76 | + /** |
| 77 | + * Select properties to be returned |
| 78 | + */ |
| 79 | + select?: string[]; |
| 80 | +} |
| 81 | +/** |
| 82 | + * Uri template for the request builder. |
| 83 | + */ |
| 84 | +export const RecoveryRequestBuilderUriTemplate = "{+baseurl}/directory/recovery{?%24expand,%24select}"; |
| 85 | +/** |
| 86 | + * Mapper for query parameters from symbol name to serialization name represented as a constant. |
| 87 | + */ |
| 88 | +const RecoveryRequestBuilderGetQueryParametersMapper: Record<string, string> = { |
| 89 | + "expand": "%24expand", |
| 90 | + "select": "%24select", |
| 91 | +}; |
| 92 | +/** |
| 93 | + * Metadata for all the navigation properties in the request builder. |
| 94 | + */ |
| 95 | +export const RecoveryRequestBuilderNavigationMetadata: Record<Exclude<keyof RecoveryRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = { |
| 96 | + jobs: { |
| 97 | + requestsMetadata: JobsRequestBuilderRequestsMetadata, |
| 98 | + navigationMetadata: JobsRequestBuilderNavigationMetadata, |
| 99 | + }, |
| 100 | + snapshots: { |
| 101 | + requestsMetadata: SnapshotsRequestBuilderRequestsMetadata, |
| 102 | + navigationMetadata: SnapshotsRequestBuilderNavigationMetadata, |
| 103 | + }, |
| 104 | +}; |
| 105 | +/** |
| 106 | + * Metadata for all the requests in the request builder. |
| 107 | + */ |
| 108 | +export const RecoveryRequestBuilderRequestsMetadata: RequestsMetadata = { |
| 109 | + delete: { |
| 110 | + uriTemplate: RecoveryRequestBuilderUriTemplate, |
| 111 | + responseBodyContentType: "application/json", |
| 112 | + errorMappings: { |
| 113 | + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, |
| 114 | + }, |
| 115 | + adapterMethodName: "sendNoResponseContent", |
| 116 | + }, |
| 117 | + get: { |
| 118 | + uriTemplate: RecoveryRequestBuilderUriTemplate, |
| 119 | + responseBodyContentType: "application/json", |
| 120 | + errorMappings: { |
| 121 | + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, |
| 122 | + }, |
| 123 | + adapterMethodName: "send", |
| 124 | + responseBodyFactory: createRecoveryFromDiscriminatorValue, |
| 125 | + queryParametersMapper: RecoveryRequestBuilderGetQueryParametersMapper, |
| 126 | + }, |
| 127 | + patch: { |
| 128 | + uriTemplate: RecoveryRequestBuilderUriTemplate, |
| 129 | + responseBodyContentType: "application/json", |
| 130 | + errorMappings: { |
| 131 | + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, |
| 132 | + }, |
| 133 | + adapterMethodName: "send", |
| 134 | + responseBodyFactory: createRecoveryFromDiscriminatorValue, |
| 135 | + requestBodyContentType: "application/json", |
| 136 | + requestBodySerializer: serializeRecovery, |
| 137 | + requestInformationContentSetMethod: "setContentFromParsable", |
| 138 | + }, |
| 139 | +}; |
| 140 | +/* tslint:enable */ |
| 141 | +/* eslint-enable */ |
0 commit comments