-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(generation): update request builders and models
Update generated files with build 175892
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Jan 7, 2025
1 parent
b5722cc
commit f1648f8
Showing
70 changed files
with
2,163 additions
and
207 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 136 additions & 0 deletions
136
packages/msgraph-sdk-chats/chats/item/members/remove/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// Generated by Microsoft Kiota | ||
// @ts-ignore | ||
import { createActionResultPartFromDiscriminatorValue, createConversationMemberFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeActionResultPart, serializeBaseCollectionPaginationCountResponse, serializeConversationMember, type ActionResultPart, type BaseCollectionPaginationCountResponse, type ConversationMember } from '@microsoft/msgraph-sdk/models/index.js'; | ||
// @ts-ignore | ||
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; | ||
// @ts-ignore | ||
import { type AdditionalDataHolder, type BackedModel, type BackingStore, type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; | ||
|
||
/** | ||
* Creates a new instance of the appropriate class based on discriminator value | ||
* @param parseNode The parse node to use to read the discriminator value and create the object | ||
* @returns {RemovePostRequestBody} | ||
*/ | ||
// @ts-ignore | ||
export function createRemovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) { | ||
return deserializeIntoRemovePostRequestBody; | ||
} | ||
/** | ||
* Creates a new instance of the appropriate class based on discriminator value | ||
* @param parseNode The parse node to use to read the discriminator value and create the object | ||
* @returns {RemovePostResponse} | ||
*/ | ||
// @ts-ignore | ||
export function createRemovePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) { | ||
return deserializeIntoRemovePostResponse; | ||
} | ||
/** | ||
* The deserialization information for the current model | ||
* @returns {Record<string, (node: ParseNode) => void>} | ||
*/ | ||
// @ts-ignore | ||
export function deserializeIntoRemovePostRequestBody(removePostRequestBody: Partial<RemovePostRequestBody> | undefined = {}) : Record<string, (node: ParseNode) => void> { | ||
return { | ||
"backingStoreEnabled": n => { removePostRequestBody.backingStoreEnabled = true; }, | ||
"values": n => { removePostRequestBody.values = n.getCollectionOfObjectValues<ConversationMember>(createConversationMemberFromDiscriminatorValue); }, | ||
} | ||
} | ||
/** | ||
* The deserialization information for the current model | ||
* @returns {Record<string, (node: ParseNode) => void>} | ||
*/ | ||
// @ts-ignore | ||
export function deserializeIntoRemovePostResponse(removePostResponse: Partial<RemovePostResponse> | undefined = {}) : Record<string, (node: ParseNode) => void> { | ||
return { | ||
...deserializeIntoBaseCollectionPaginationCountResponse(removePostResponse), | ||
"value": n => { removePostResponse.value = n.getCollectionOfObjectValues<ActionResultPart>(createActionResultPartFromDiscriminatorValue); }, | ||
} | ||
} | ||
export interface RemovePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { | ||
/** | ||
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. | ||
*/ | ||
additionalData?: Record<string, unknown>; | ||
/** | ||
* Stores model information. | ||
*/ | ||
backingStoreEnabled?: boolean | null; | ||
/** | ||
* The values property | ||
*/ | ||
values?: ConversationMember[] | null; | ||
} | ||
export interface RemovePostResponse extends BaseCollectionPaginationCountResponse, Parsable { | ||
/** | ||
* The value property | ||
*/ | ||
value?: ActionResultPart[] | null; | ||
} | ||
/** | ||
* Provides operations to call the remove method. | ||
*/ | ||
export interface RemoveRequestBuilder extends BaseRequestBuilder<RemoveRequestBuilder> { | ||
/** | ||
* Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. | ||
* @param body The request body | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {Promise<RemovePostResponse>} | ||
* @throws {ODataError} error when the service returns a 4XX or 5XX status code | ||
* @see {@link https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0|Find more info here} | ||
*/ | ||
post(body: RemovePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<RemovePostResponse | undefined>; | ||
/** | ||
* Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed. | ||
* @param body The request body | ||
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. | ||
* @returns {RequestInformation} | ||
*/ | ||
toPostRequestInformation(body: RemovePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation; | ||
} | ||
/** | ||
* Serializes information the current object | ||
* @param writer Serialization writer to use to serialize this model | ||
*/ | ||
// @ts-ignore | ||
export function serializeRemovePostRequestBody(writer: SerializationWriter, removePostRequestBody: Partial<RemovePostRequestBody> | undefined | null = {}) : void { | ||
if (removePostRequestBody) { | ||
writer.writeCollectionOfObjectValues<ConversationMember>("values", removePostRequestBody.values, serializeConversationMember); | ||
writer.writeAdditionalData(removePostRequestBody.additionalData); | ||
} | ||
} | ||
/** | ||
* Serializes information the current object | ||
* @param writer Serialization writer to use to serialize this model | ||
*/ | ||
// @ts-ignore | ||
export function serializeRemovePostResponse(writer: SerializationWriter, removePostResponse: Partial<RemovePostResponse> | undefined | null = {}) : void { | ||
if (removePostResponse) { | ||
serializeBaseCollectionPaginationCountResponse(writer, removePostResponse) | ||
writer.writeCollectionOfObjectValues<ActionResultPart>("value", removePostResponse.value, serializeActionResultPart); | ||
} | ||
} | ||
/** | ||
* Uri template for the request builder. | ||
*/ | ||
export const RemoveRequestBuilderUriTemplate = "{+baseurl}/chats/{chat%2Did}/members/remove"; | ||
/** | ||
* Metadata for all the requests in the request builder. | ||
*/ | ||
export const RemoveRequestBuilderRequestsMetadata: RequestsMetadata = { | ||
post: { | ||
uriTemplate: RemoveRequestBuilderUriTemplate, | ||
responseBodyContentType: "application/json", | ||
errorMappings: { | ||
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, | ||
}, | ||
adapterMethodName: "send", | ||
responseBodyFactory: createRemovePostResponseFromDiscriminatorValue, | ||
requestBodyContentType: "application/json", | ||
requestBodySerializer: serializeRemovePostRequestBody, | ||
requestInformationContentSetMethod: "setContentFromParsable", | ||
}, | ||
}; | ||
/* tslint:enable */ | ||
/* eslint-enable */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.