Skip to content

Commit

Permalink
feat(generation): update request builders and models
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 70 changed files with 2,163 additions and 207 deletions.
216 changes: 216 additions & 0 deletions packages/kiota-dom-export.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "0D10478CC5AE4EC6098852A872AE786DED9F45C1918ED35870E3017BFA60F4EA8C5A59A80C9DB74303CDDBD302EAFA5D7BBB8F5AA4730264459AE9A8DF1205F8",
"descriptionHash": "41B7C0B6654A80DF3D52FB71F51483517EC4F51064C456068D3D0B777A06251F06CA20B829D0F2073097CBD62BD40A9804A2682D6009C81F73D0874C190B399F",
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.22.0",
Expand Down
9 changes: 9 additions & 0 deletions packages/msgraph-sdk-chats/chats/item/members/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '.
// @ts-ignore
import { ConversationMemberItemRequestBuilderRequestsMetadata, type ConversationMemberItemRequestBuilder } from './item/index.js';
// @ts-ignore
import { RemoveRequestBuilderRequestsMetadata, type RemoveRequestBuilder } from './remove/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
Expand All @@ -26,6 +28,10 @@ export interface MembersRequestBuilder extends BaseRequestBuilder<MembersRequest
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to call the remove method.
*/
get remove(): RemoveRequestBuilder;
/**
* Provides operations to manage the members property of the microsoft.graph.chat entity.
* @param conversationMemberId The unique identifier of conversationMember
Expand Down Expand Up @@ -131,6 +137,9 @@ export const MembersRequestBuilderNavigationMetadata: Record<Exclude<keyof Membe
count: {
requestsMetadata: CountRequestBuilderRequestsMetadata,
},
remove: {
requestsMetadata: RemoveRequestBuilderRequestsMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
Expand Down
8 changes: 4 additions & 4 deletions packages/msgraph-sdk-chats/chats/item/members/item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* Retrieve a conversationMember from a chat or channel.
* Retrieve a conversationMember from a chat.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ConversationMember>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<ConversationMemberItemRequestBuilderGetQueryParameters> | undefined) : Promise<ConversationMember | undefined>;
/**
Expand All @@ -42,7 +42,7 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* Retrieve a conversationMember from a chat or channel.
* Retrieve a conversationMember from a chat.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
Expand All @@ -56,7 +56,7 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder
toPatchRequestInformation(body: ConversationMember, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Retrieve a conversationMember from a chat or channel.
* Retrieve a conversationMember from a chat.
*/
export interface ConversationMemberItemRequestBuilderGetQueryParameters {
/**
Expand Down
136 changes: 136 additions & 0 deletions packages/msgraph-sdk-chats/chats/item/members/remove/index.ts
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 */
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ export interface InvitePostRequestBody extends AdditionalDataHolder, BackedModel
*/
export interface InviteRequestBuilder extends BaseRequestBuilder<InviteRequestBuilder> {
/**
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<InviteParticipantsOperation>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0|Find more info here}
*/
post(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<InviteParticipantsOperation | undefined>;
/**
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export interface DeviceAppManagementRequestBuilder extends BaseRequestBuilder<De
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<DeviceAppManagement>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-get?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<DeviceAppManagementRequestBuilderGetQueryParameters> | undefined) : Promise<DeviceAppManagement | undefined>;
/**
Expand All @@ -116,7 +116,7 @@ export interface DeviceAppManagementRequestBuilder extends BaseRequestBuilder<De
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<DeviceAppManagement>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-update?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-unlock-deviceappmanagement-update?view=graph-rest-1.0|Find more info here}
*/
patch(body: DeviceAppManagement, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<DeviceAppManagement | undefined>;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder<Man
*/
byManagedAppPolicyId(managedAppPolicyId: string) : ManagedAppPolicyItemRequestBuilder;
/**
* List properties and relationships of the targetedManagedAppProtection objects.
* List properties and relationships of the managedAppPolicy objects.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ManagedAppPolicyCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-list?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<ManagedAppPoliciesRequestBuilderGetQueryParameters> | undefined) : Promise<ManagedAppPolicyCollectionResponse | undefined>;
/**
Expand All @@ -43,7 +43,7 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder<Man
*/
post(body: ManagedAppPolicy, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ManagedAppPolicy | undefined>;
/**
* List properties and relationships of the targetedManagedAppProtection objects.
* List properties and relationships of the managedAppPolicy objects.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
Expand All @@ -57,7 +57,7 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder<Man
toPostRequestInformation(body: ManagedAppPolicy, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* List properties and relationships of the targetedManagedAppProtection objects.
* List properties and relationships of the managedAppPolicy objects.
*/
export interface ManagedAppPoliciesRequestBuilderGetQueryParameters {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder<M
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* Read properties and relationships of the targetedManagedAppProtection object.
* Read properties and relationships of the windowsInformationProtection object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ManagedAppPolicy>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-get?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<ManagedAppPolicyItemRequestBuilderGetQueryParameters> | undefined) : Promise<ManagedAppPolicy | undefined>;
/**
Expand All @@ -47,7 +47,7 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder<M
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* Read properties and relationships of the targetedManagedAppProtection object.
* Read properties and relationships of the windowsInformationProtection object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
Expand All @@ -61,7 +61,7 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder<M
toPatchRequestInformation(body: ManagedAppPolicy, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Read properties and relationships of the targetedManagedAppProtection object.
* Read properties and relationships of the windowsInformationProtection object.
*/
export interface ManagedAppPolicyItemRequestBuilderGetQueryParameters {
/**
Expand Down
Loading

0 comments on commit f1648f8

Please sign in to comment.