diff --git a/src/admin/people/index.ts b/src/admin/people/index.ts index ce74f3f2fad..149241d7342 100644 --- a/src/admin/people/index.ts +++ b/src/admin/people/index.ts @@ -1,9 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createPeopleAdminSettingsFromDiscriminatorValue, deserializeIntoPeopleAdminSettings, serializePeopleAdminSettings, type PeopleAdminSettings } from '../../models/'; +import { createPeopleAdminSettingsFromDiscriminatorValue, type PeopleAdminSettings } from '../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../models/oDataErrors/'; import { ProfileCardPropertiesRequestBuilder } from './profileCardProperties/'; +import { PronounsRequestBuilder } from './pronouns/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; export interface PeopleRequestBuilderGetQueryParameters { @@ -26,6 +27,12 @@ export class PeopleRequestBuilder extends BaseRequestBuilder>; return this.requestAdapter.sendAsync(requestInfo, createPeopleAdminSettingsFromDiscriminatorValue, errorMapping); } - /** - * Update the navigation property people in admin - * @param body The request body - * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @returns a Promise of PeopleAdminSettings - */ - public patch(body: PeopleAdminSettings, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPatchRequestInformation( - body, requestConfiguration - ); - const errorMapping = { - "4XX": createODataErrorFromDiscriminatorValue, - "5XX": createODataErrorFromDiscriminatorValue, - } as Record>; - return this.requestAdapter.sendAsync(requestInfo, createPeopleAdminSettingsFromDiscriminatorValue, errorMapping); - } /** * Retrieve the properties and relationships of a peopleAdminSettings object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. @@ -77,20 +68,6 @@ export class PeopleRequestBuilder extends BaseRequestBuilder | undefined) : RequestInformation { - if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); - requestInfo.configure(requestConfiguration); - requestInfo.headers.tryAdd("Accept", "application/json"); - requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePeopleAdminSettings); - return requestInfo; - } } const peopleRequestBuilderGetQueryParametersMapper: Record = { "expand": "%24expand", diff --git a/src/admin/people/pronouns/index.ts b/src/admin/people/pronouns/index.ts new file mode 100644 index 00000000000..2da11db3d3d --- /dev/null +++ b/src/admin/people/pronouns/index.ts @@ -0,0 +1,94 @@ +// tslint:disable +// eslint-disable +// Generated by Microsoft Kiota +import { createPronounsSettingsFromDiscriminatorValue, deserializeIntoPronounsSettings, serializePronounsSettings, type PronounsSettings } from '../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions'; + +export interface PronounsRequestBuilderGetQueryParameters { + /** + * Expand related entities + */ + expand?: string[]; + /** + * Select properties to be returned + */ + select?: string[]; +} +/** + * Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. + */ +export class PronounsRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new PronounsRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/admin/people/pronouns{?%24select,%24expand}", (x, y) => new PronounsRequestBuilder(x, y)); + } + /** + * Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of PronounsSettings + * @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-list-pronouns?view=graph-rest-1.0|Find more info here} + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createPronounsSettingsFromDiscriminatorValue, errorMapping); + } + /** + * Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of PronounsSettings + * @see {@link https://learn.microsoft.com/graph/api/pronounssettings-update?view=graph-rest-1.0|Find more info here} + */ + public patch(body: PronounsSettings, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createPronounsSettingsFromDiscriminatorValue, errorMapping); + } + /** + * Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, pronounsRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: PronounsSettings, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePronounsSettings); + return requestInfo; + } +} +const pronounsRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +// tslint:enable +// eslint-enable diff --git a/src/applications/item/appManagementPolicies/index.ts b/src/applications/item/appManagementPolicies/index.ts index 655120e84e4..fee46650b8b 100644 --- a/src/applications/item/appManagementPolicies/index.ts +++ b/src/applications/item/appManagementPolicies/index.ts @@ -60,7 +60,7 @@ export class AppManagementPoliciesRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -86,7 +86,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder void> { return { - "acceptedModalities": n => { answerPostRequestBody.acceptedModalities = n.getCollectionOfEnumValues(Modality); }, + "acceptedModalities": n => { answerPostRequestBody.acceptedModalities = n.getCollectionOfEnumValues(ModalityObject); }, "callbackUri": n => { answerPostRequestBody.callbackUri = n.getStringValue(); }, "callOptions": n => { answerPostRequestBody.callOptions = n.getObjectValue(createIncomingCallOptionsFromDiscriminatorValue); }, "mediaConfig": n => { answerPostRequestBody.mediaConfig = n.getObjectValue(createMediaConfigFromDiscriminatorValue); }, diff --git a/src/communications/calls/item/changeScreenSharingRole/index.ts b/src/communications/calls/item/changeScreenSharingRole/index.ts index 090e2e9b960..0223e860516 100644 --- a/src/communications/calls/item/changeScreenSharingRole/index.ts +++ b/src/communications/calls/item/changeScreenSharingRole/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { ScreenSharingRole } from '../../../../models/'; +import { ScreenSharingRole, ScreenSharingRoleObject } from '../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; @@ -20,7 +20,7 @@ export function createChangeScreenSharingRolePostRequestBodyFromDiscriminatorVal } export function deserializeIntoChangeScreenSharingRolePostRequestBody(changeScreenSharingRolePostRequestBody: ChangeScreenSharingRolePostRequestBody | undefined = {} as ChangeScreenSharingRolePostRequestBody) : Record void> { return { - "role": n => { changeScreenSharingRolePostRequestBody.role = n.getEnumValue(ScreenSharingRole); }, + "role": n => { changeScreenSharingRolePostRequestBody.role = n.getEnumValue(ScreenSharingRoleObject); }, } } export function serializeChangeScreenSharingRolePostRequestBody(writer: SerializationWriter, changeScreenSharingRolePostRequestBody: ChangeScreenSharingRolePostRequestBody | undefined = {} as ChangeScreenSharingRolePostRequestBody) : void { diff --git a/src/communications/calls/item/participants/invite/index.ts b/src/communications/calls/item/participants/invite/index.ts index 06bcb346ea9..f37cf8c6477 100644 --- a/src/communications/calls/item/participants/invite/index.ts +++ b/src/communications/calls/item/participants/invite/index.ts @@ -46,11 +46,11 @@ export class InviteRequestBuilder extends BaseRequestBuilder new InviteRequestBuilder(x, y)); } /** - * 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 a Promise of InviteParticipantsOperation - * @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} */ public post(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -63,7 +63,7 @@ export class InviteRequestBuilder extends BaseRequestBuilder(requestInfo, createInviteParticipantsOperationFromDiscriminatorValue, errorMapping); } /** - * 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 a RequestInformation diff --git a/src/communications/calls/item/reject/index.ts b/src/communications/calls/item/reject/index.ts index a0574ce5670..f79fb0d0e1d 100644 --- a/src/communications/calls/item/reject/index.ts +++ b/src/communications/calls/item/reject/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { RejectReason } from '../../../../models/'; +import { RejectReason, RejectReasonObject } from '../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; @@ -11,7 +11,7 @@ export function createRejectPostRequestBodyFromDiscriminatorValue(parseNode: Par export function deserializeIntoRejectPostRequestBody(rejectPostRequestBody: RejectPostRequestBody | undefined = {} as RejectPostRequestBody) : Record void> { return { "callbackUri": n => { rejectPostRequestBody.callbackUri = n.getStringValue(); }, - "reason": n => { rejectPostRequestBody.reason = n.getEnumValue(RejectReason); }, + "reason": n => { rejectPostRequestBody.reason = n.getEnumValue(RejectReasonObject); }, } } export interface RejectPostRequestBody extends AdditionalDataHolder, Parsable { diff --git a/src/communications/calls/item/updateRecordingStatus/index.ts b/src/communications/calls/item/updateRecordingStatus/index.ts index 95985acfb5b..975900655fb 100644 --- a/src/communications/calls/item/updateRecordingStatus/index.ts +++ b/src/communications/calls/item/updateRecordingStatus/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createUpdateRecordingStatusOperationFromDiscriminatorValue, deserializeIntoUpdateRecordingStatusOperation, RecordingStatus, serializeUpdateRecordingStatusOperation, type UpdateRecordingStatusOperation } from '../../../../models/'; +import { createUpdateRecordingStatusOperationFromDiscriminatorValue, deserializeIntoUpdateRecordingStatusOperation, RecordingStatus, RecordingStatusObject, serializeUpdateRecordingStatusOperation, type UpdateRecordingStatusOperation } from '../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; @@ -11,7 +11,7 @@ export function createUpdateRecordingStatusPostRequestBodyFromDiscriminatorValue export function deserializeIntoUpdateRecordingStatusPostRequestBody(updateRecordingStatusPostRequestBody: UpdateRecordingStatusPostRequestBody | undefined = {} as UpdateRecordingStatusPostRequestBody) : Record void> { return { "clientContext": n => { updateRecordingStatusPostRequestBody.clientContext = n.getStringValue(); }, - "status": n => { updateRecordingStatusPostRequestBody.status = n.getEnumValue(RecordingStatus); }, + "status": n => { updateRecordingStatusPostRequestBody.status = n.getEnumValue(RecordingStatusObject); }, } } export function serializeUpdateRecordingStatusPostRequestBody(writer: SerializationWriter, updateRecordingStatusPostRequestBody: UpdateRecordingStatusPostRequestBody | undefined = {} as UpdateRecordingStatusPostRequestBody) : void { diff --git a/src/deviceAppManagement/index.ts b/src/deviceAppManagement/index.ts index 2174d5a1831..29a03cb52d6 100644 --- a/src/deviceAppManagement/index.ts +++ b/src/deviceAppManagement/index.ts @@ -136,7 +136,7 @@ export class DeviceAppManagementRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -153,7 +153,7 @@ export class DeviceAppManagementRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( diff --git a/src/deviceAppManagement/managedAppPolicies/index.ts b/src/deviceAppManagement/managedAppPolicies/index.ts index b57dfa23f2d..1a318f7ce59 100644 --- a/src/deviceAppManagement/managedAppPolicies/index.ts +++ b/src/deviceAppManagement/managedAppPolicies/index.ts @@ -71,10 +71,10 @@ export class ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder new ManagedAppPoliciesRequestBuilder(x, y)); } /** - * 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 a Promise of ManagedAppPolicyCollectionResponse - * @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} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -103,7 +103,7 @@ export class ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedAppPolicyFromDiscriminatorValue, errorMapping); } /** - * 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 a RequestInformation */ diff --git a/src/deviceAppManagement/managedAppPolicies/item/index.ts b/src/deviceAppManagement/managedAppPolicies/item/index.ts index 2550c55d3d2..cee690e83be 100644 --- a/src/deviceAppManagement/managedAppPolicies/item/index.ts +++ b/src/deviceAppManagement/managedAppPolicies/item/index.ts @@ -49,10 +49,10 @@ export class ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -92,7 +92,7 @@ export class ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts index 9bee34dc59d..ff9824ca057 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/appliedPolicies/item/targetApps/index.ts @@ -43,7 +43,7 @@ export class TargetAppsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppRegistrations/item/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/index.ts index 775272815c8..692359fec64 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/index.ts @@ -63,10 +63,10 @@ export class ManagedAppRegistrationItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the androidManagedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedAppRegistration - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -106,7 +106,7 @@ export class ManagedAppRegistrationItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Read properties and relationships of the iosManagedAppRegistration object. + * Read properties and relationships of the androidManagedAppRegistration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts index 40073f4e691..5254d4042d1 100644 --- a/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts +++ b/src/deviceAppManagement/managedAppRegistrations/item/intendedPolicies/item/targetApps/index.ts @@ -43,7 +43,7 @@ export class TargetAppsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPostRequestInformation( diff --git a/src/deviceAppManagement/managedAppStatuses/index.ts b/src/deviceAppManagement/managedAppStatuses/index.ts index 48cf33d8898..486fd76bce4 100644 --- a/src/deviceAppManagement/managedAppStatuses/index.ts +++ b/src/deviceAppManagement/managedAppStatuses/index.ts @@ -71,10 +71,10 @@ export class ManagedAppStatusesRequestBuilder extends BaseRequestBuilder new ManagedAppStatusesRequestBuilder(x, y)); } /** - * List properties and relationships of the managedAppStatusRaw objects. + * List properties and relationships of the managedAppStatus objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedAppStatusCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappstatusraw-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -103,7 +103,7 @@ export class ManagedAppStatusesRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedAppStatusFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the managedAppStatusRaw objects. + * List properties and relationships of the managedAppStatus objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceAppManagement/managedAppStatuses/item/index.ts b/src/deviceAppManagement/managedAppStatuses/item/index.ts index 877ee4ab722..d0a93746e9b 100644 --- a/src/deviceAppManagement/managedAppStatuses/item/index.ts +++ b/src/deviceAppManagement/managedAppStatuses/item/index.ts @@ -42,10 +42,10 @@ export class ManagedAppStatusItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -85,7 +85,7 @@ export class ManagedAppStatusItemRequestBuilder extends BaseRequestBuilder new AssignmentsRequestBuilder(x, y)); } /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedEBookAssignmentCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -87,11 +87,11 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedEBookAssignmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new managedEBookAssignment object. + * Create a new iosVppEBookAssignment object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedEBookAssignment - * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0|Find more info here} */ public post(body: ManagedEBookAssignment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -104,7 +104,7 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedEBookAssignmentFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the managedEBookAssignment objects. + * List properties and relationships of the iosVppEBookAssignment objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -115,7 +115,7 @@ export class AssignmentsRequestBuilder extends BaseRequestBuilder new ManagedEBookAssignmentItemRequestBuilder(x, y)); } /** - * Deletes a iosVppEBookAssignment. + * Deletes a managedEBookAssignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -43,10 +43,10 @@ export class ManagedEBookAssignmentItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedEBookAssignment - * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -59,11 +59,11 @@ export class ManagedEBookAssignmentItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createManagedEBookAssignmentFromDiscriminatorValue, errorMapping); } /** - * Update the properties of a managedEBookAssignment object. + * Update the properties of a iosVppEBookAssignment object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedEBookAssignment - * @see {@link https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-update?view=graph-rest-1.0|Find more info here} */ public patch(body: ManagedEBookAssignment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -76,7 +76,7 @@ export class ManagedEBookAssignmentItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createManagedEBookAssignmentFromDiscriminatorValue, errorMapping); } /** - * Deletes a iosVppEBookAssignment. + * Deletes a managedEBookAssignment. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -87,7 +87,7 @@ export class ManagedEBookAssignmentItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Read properties and relationships of the managedEBookAssignment object. + * Read properties and relationships of the iosVppEBookAssignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -98,7 +98,7 @@ export class ManagedEBookAssignmentItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Update the properties of a managedEBookAssignment object. + * Update the properties of a iosVppEBookAssignment object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceAppManagement/mobileAppConfigurations/index.ts b/src/deviceAppManagement/mobileAppConfigurations/index.ts index 45ceb04999c..43810c53a59 100644 --- a/src/deviceAppManagement/mobileAppConfigurations/index.ts +++ b/src/deviceAppManagement/mobileAppConfigurations/index.ts @@ -71,10 +71,10 @@ export class MobileAppConfigurationsRequestBuilder extends BaseRequestBuilder new MobileAppConfigurationsRequestBuilder(x, y)); } /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ManagedDeviceMobileAppConfigurationCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -104,7 +104,7 @@ export class MobileAppConfigurationsRequestBuilder extends BaseRequestBuilder(requestInfo, createManagedDeviceMobileAppConfigurationFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the managedDeviceMobileAppConfiguration objects. + * List properties and relationships of the iosMobileAppConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/deviceAppManagement/mobileApps/index.ts b/src/deviceAppManagement/mobileApps/index.ts index 28ac2cf0f0d..c80344df9ad 100644 --- a/src/deviceAppManagement/mobileApps/index.ts +++ b/src/deviceAppManagement/mobileApps/index.ts @@ -183,10 +183,10 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder new MobileAppsRequestBuilder(x, y)); } /** - * List properties and relationships of the managedIOSStoreApp objects. + * List properties and relationships of the androidStoreApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MobileAppCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managediosstoreapp-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-androidstoreapp-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -199,11 +199,11 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder(requestInfo, createMobileAppCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new managedAndroidStoreApp object. + * Create a new windowsMicrosoftEdgeApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MobileApp - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managedandroidstoreapp-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-create?view=graph-rest-1.0|Find more info here} */ public post(body: MobileApp, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -216,7 +216,7 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder(requestInfo, createMobileAppFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the managedIOSStoreApp objects. + * List properties and relationships of the androidStoreApp objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -227,7 +227,7 @@ export class MobileAppsRequestBuilder extends BaseRequestBuilder new MobileAppItemRequestBuilder(x, y)); } /** - * Deletes a iosVppApp. + * Deletes a macOSOfficeSuiteApp. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-iosvppapp-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-macosofficesuiteapp-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -176,10 +176,10 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -192,11 +192,11 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder(requestInfo, createMobileAppFromDiscriminatorValue, errorMapping); } /** - * Update the properties of a managedAndroidLobApp object. + * Update the properties of a macOSLobApp object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of MobileApp - * @see {@link https://learn.microsoft.com/graph/api/intune-apps-managedandroidlobapp-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-apps-macoslobapp-update?view=graph-rest-1.0|Find more info here} */ public patch(body: MobileApp, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -209,7 +209,7 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder(requestInfo, createMobileAppFromDiscriminatorValue, errorMapping); } /** - * Deletes a iosVppApp. + * Deletes a macOSOfficeSuiteApp. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -220,7 +220,7 @@ export class MobileAppItemRequestBuilder extends BaseRequestBuilder void> { return { - "appGroupType": n => { targetAppsPostRequestBody.appGroupType = n.getEnumValue(TargetedManagedAppGroupType); }, + "appGroupType": n => { targetAppsPostRequestBody.appGroupType = n.getEnumValue(TargetedManagedAppGroupTypeObject); }, "apps": n => { targetAppsPostRequestBody.apps = n.getCollectionOfObjectValues(createManagedMobileAppFromDiscriminatorValue); }, } } diff --git a/src/deviceManagement/deviceCompliancePolicies/index.ts b/src/deviceManagement/deviceCompliancePolicies/index.ts index 259ec211fce..0f17401e412 100644 --- a/src/deviceManagement/deviceCompliancePolicies/index.ts +++ b/src/deviceManagement/deviceCompliancePolicies/index.ts @@ -71,10 +71,10 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder new DeviceCompliancePoliciesRequestBuilder(x, y)); } /** - * List properties and relationships of the windows10MobileCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceCompliancePolicyCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -87,11 +87,11 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceCompliancePolicyCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new androidCompliancePolicy object. + * Create a new windows81CompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceCompliancePolicy - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-create?view=graph-rest-1.0|Find more info here} */ public post(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -104,7 +104,7 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceCompliancePolicyFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the windows10MobileCompliancePolicy objects. + * List properties and relationships of the windows81CompliancePolicy objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -115,7 +115,7 @@ export class DeviceCompliancePoliciesRequestBuilder extends BaseRequestBuilder new DeviceCompliancePolicyItemRequestBuilder(x, y)); } /** - * Deletes a windows10MobileCompliancePolicy. + * Deletes a macOSCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -106,10 +106,10 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Read properties and relationships of the macOSCompliancePolicy object. + * Read properties and relationships of the windows81CompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceCompliancePolicy - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -122,11 +122,11 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createDeviceCompliancePolicyFromDiscriminatorValue, errorMapping); } /** - * Update the properties of a windowsPhone81CompliancePolicy object. + * Update the properties of a androidCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceCompliancePolicy - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81compliancepolicy-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-update?view=graph-rest-1.0|Find more info here} */ public patch(body: DeviceCompliancePolicy, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -139,7 +139,7 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createDeviceCompliancePolicyFromDiscriminatorValue, errorMapping); } /** - * Deletes a windows10MobileCompliancePolicy. + * Deletes a macOSCompliancePolicy. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -150,7 +150,7 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Read properties and relationships of the macOSCompliancePolicy object. + * Read properties and relationships of the windows81CompliancePolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -161,7 +161,7 @@ export class DeviceCompliancePolicyItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Update the properties of a windowsPhone81CompliancePolicy object. + * Update the properties of a androidCompliancePolicy object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceManagement/deviceConfigurations/index.ts b/src/deviceManagement/deviceConfigurations/index.ts index 16d97f1f957..c4e9ac9f9ba 100644 --- a/src/deviceManagement/deviceConfigurations/index.ts +++ b/src/deviceManagement/deviceConfigurations/index.ts @@ -71,10 +71,10 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder new DeviceConfigurationsRequestBuilder(x, y)); } /** - * List properties and relationships of the windowsPhone81GeneralConfiguration objects. + * List properties and relationships of the androidCustomConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceConfigurationCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81generalconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcustomconfiguration-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -87,11 +87,11 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceConfigurationCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new androidWorkProfileGeneralDeviceConfiguration object. + * Create a new windowsPhone81GeneralConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceConfiguration - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilegeneraldeviceconfiguration-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81generalconfiguration-create?view=graph-rest-1.0|Find more info here} */ public post(body: DeviceConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -104,7 +104,7 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceConfigurationFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the windowsPhone81GeneralConfiguration objects. + * List properties and relationships of the androidCustomConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -115,7 +115,7 @@ export class DeviceConfigurationsRequestBuilder extends BaseRequestBuilder new DeviceConfigurationItemRequestBuilder(x, y)); } /** - * Deletes a windowsDefenderAdvancedThreatProtectionConfiguration. + * Deletes a iosGeneralDeviceConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsdefenderadvancedthreatprotectionconfiguration-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -93,10 +93,10 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -118,11 +118,11 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -135,7 +135,7 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder(requestInfo, createDeviceConfigurationFromDiscriminatorValue, errorMapping); } /** - * Deletes a windowsDefenderAdvancedThreatProtectionConfiguration. + * Deletes a iosGeneralDeviceConfiguration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -146,7 +146,7 @@ export class DeviceConfigurationItemRequestBuilder extends BaseRequestBuilder new DeviceEnrollmentConfigurationsRequestBuilder(x, y)); } /** - * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. + * List properties and relationships of the deviceEnrollmentConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceEnrollmentConfigurationCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-list?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -87,11 +87,11 @@ export class DeviceEnrollmentConfigurationsRequestBuilder extends BaseRequestBui return this.requestAdapter.sendAsync(requestInfo, createDeviceEnrollmentConfigurationCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Create a new deviceEnrollmentLimitConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of DeviceEnrollmentConfiguration - * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-create?view=graph-rest-1.0|Find more info here} */ public post(body: DeviceEnrollmentConfiguration, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -104,7 +104,7 @@ export class DeviceEnrollmentConfigurationsRequestBuilder extends BaseRequestBui return this.requestAdapter.sendAsync(requestInfo, createDeviceEnrollmentConfigurationFromDiscriminatorValue, errorMapping); } /** - * List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. + * List properties and relationships of the deviceEnrollmentConfiguration objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -115,7 +115,7 @@ export class DeviceEnrollmentConfigurationsRequestBuilder extends BaseRequestBui return requestInfo; } /** - * Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + * Create a new deviceEnrollmentLimitConfiguration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/deviceManagement/exchangeConnectors/item/sync/index.ts b/src/deviceManagement/exchangeConnectors/item/sync/index.ts index f1b9f8ccc6f..e5718804ba4 100644 --- a/src/deviceManagement/exchangeConnectors/item/sync/index.ts +++ b/src/deviceManagement/exchangeConnectors/item/sync/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { DeviceManagementExchangeConnectorSyncType } from '../../../../models/'; +import { DeviceManagementExchangeConnectorSyncType, DeviceManagementExchangeConnectorSyncTypeObject } from '../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; @@ -10,7 +10,7 @@ export function createSyncPostRequestBodyFromDiscriminatorValue(parseNode: Parse } export function deserializeIntoSyncPostRequestBody(syncPostRequestBody: SyncPostRequestBody | undefined = {} as SyncPostRequestBody) : Record void> { return { - "syncType": n => { syncPostRequestBody.syncType = n.getEnumValue(DeviceManagementExchangeConnectorSyncType); }, + "syncType": n => { syncPostRequestBody.syncType = n.getEnumValue(DeviceManagementExchangeConnectorSyncTypeObject); }, } } export function serializeSyncPostRequestBody(writer: SerializationWriter, syncPostRequestBody: SyncPostRequestBody | undefined = {} as SyncPostRequestBody) : void { diff --git a/src/deviceManagement/index.ts b/src/deviceManagement/index.ts index 21c19a8c79f..3c7fca9d392 100644 --- a/src/deviceManagement/index.ts +++ b/src/deviceManagement/index.ts @@ -59,6 +59,7 @@ import { UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetricRequestBu import { UserExperienceAnalyticsWorkFromAnywhereMetricsRequestBuilder } from './userExperienceAnalyticsWorkFromAnywhereMetrics/'; import { UserExperienceAnalyticsWorkFromAnywhereModelPerformanceRequestBuilder } from './userExperienceAnalyticsWorkFromAnywhereModelPerformance/'; import { VerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRequestBuilder } from './verifyWindowsEnrollmentAutoDiscoveryWithDomainName/'; +import { VirtualEndpointRequestBuilder } from './virtualEndpoint/'; import { WindowsAutopilotDeviceIdentitiesRequestBuilder } from './windowsAutopilotDeviceIdentities/'; import { WindowsInformationProtectionAppLearningSummariesRequestBuilder } from './windowsInformationProtectionAppLearningSummaries/'; import { WindowsInformationProtectionNetworkLearningSummariesRequestBuilder } from './windowsInformationProtectionNetworkLearningSummaries/'; @@ -403,6 +404,12 @@ export class DeviceManagementRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -465,7 +472,7 @@ export class DeviceManagementRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( diff --git a/src/deviceManagement/roleDefinitions/index.ts b/src/deviceManagement/roleDefinitions/index.ts index 33ec0f9ed35..f5009a2c19c 100644 --- a/src/deviceManagement/roleDefinitions/index.ts +++ b/src/deviceManagement/roleDefinitions/index.ts @@ -87,11 +87,11 @@ export class RoleDefinitionsRequestBuilder extends BaseRequestBuilder(requestInfo, createRoleDefinitionCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Create a new deviceAndAppManagementRoleDefinition object. + * Create a new roleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of RoleDefinition - * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-create?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-create?view=graph-rest-1.0|Find more info here} */ public post(body: RoleDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -115,7 +115,7 @@ export class RoleDefinitionsRequestBuilder extends BaseRequestBuilder(requestInfo, createRoleDefinitionFromDiscriminatorValue, errorMapping); } /** - * Update the properties of a deviceAndAppManagementRoleDefinition object. + * Update the properties of a roleDefinition object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of RoleDefinition - * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-update?view=graph-rest-1.0|Find more info here} */ public patch(body: RoleDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -105,7 +105,7 @@ export class RoleDefinitionItemRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new VirtualEndpointRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/deviceManagement/virtualEndpoint{?%24select,%24expand}", (x, y) => new VirtualEndpointRequestBuilder(x, y)); + } + /** + * Delete navigation property virtualEndpoint for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + */ + public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toDeleteRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); + } + /** + * Get virtualEndpoint from deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of VirtualEndpoint + */ + public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toGetRequestInformation( + requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createVirtualEndpointFromDiscriminatorValue, errorMapping); + } + /** + * Update the navigation property virtualEndpoint in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of VirtualEndpoint + */ + public patch(body: VirtualEndpoint, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPatchRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createVirtualEndpointFromDiscriminatorValue, errorMapping); + } + /** + * Delete navigation property virtualEndpoint for deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toDeleteRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.DELETE, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Get virtualEndpoint from deviceManagement + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration, virtualEndpointRequestBuilderGetQueryParametersMapper); + requestInfo.headers.tryAdd("Accept", "application/json"); + return requestInfo; + } + /** + * Update the navigation property virtualEndpoint in deviceManagement + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPatchRequestInformation(body: VirtualEndpoint, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeVirtualEndpoint); + return requestInfo; + } +} +const virtualEndpointRequestBuilderGetQueryParametersMapper: Record = { + "expand": "%24expand", + "select": "%24select", +}; +// tslint:enable +// eslint-enable diff --git a/src/devices/item/registeredOwners/index.ts b/src/devices/item/registeredOwners/index.ts index 3f9f4f6f99c..82fd8a9beae 100644 --- a/src/devices/item/registeredOwners/index.ts +++ b/src/devices/item/registeredOwners/index.ts @@ -88,7 +88,7 @@ export class RegisteredOwnersRequestBuilder extends BaseRequestBuilder void> { return { - "assignmentMethod": n => { assignSensitivityLabelPostRequestBody.assignmentMethod = n.getEnumValue(SensitivityLabelAssignmentMethod); }, + "assignmentMethod": n => { assignSensitivityLabelPostRequestBody.assignmentMethod = n.getEnumValue(SensitivityLabelAssignmentMethodObject); }, "justificationText": n => { assignSensitivityLabelPostRequestBody.justificationText = n.getStringValue(); }, "sensitivityLabelId": n => { assignSensitivityLabelPostRequestBody.sensitivityLabelId = n.getStringValue(); }, } diff --git a/src/drives/item/items/item/createLink/index.ts b/src/drives/item/items/item/createLink/index.ts index 0cb72ca244a..e910ae62d71 100644 --- a/src/drives/item/items/item/createLink/index.ts +++ b/src/drives/item/items/item/createLink/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializePermission, type Permission } from '../../../../../models/'; +import { createDriveRecipientFromDiscriminatorValue, createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializeDriveRecipient, serializePermission, type DriveRecipient, type Permission } from '../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; @@ -25,6 +25,10 @@ export interface CreateLinkPostRequestBody extends AdditionalDataHolder, Parsabl * The password property */ password?: string; + /** + * The recipients property + */ + recipients?: DriveRecipient[]; /** * The retainInheritedPermissions property */ @@ -33,6 +37,10 @@ export interface CreateLinkPostRequestBody extends AdditionalDataHolder, Parsabl * The scope property */ scope?: string; + /** + * The sendNotification property + */ + sendNotification?: boolean; /** * The type property */ @@ -43,8 +51,10 @@ export function deserializeIntoCreateLinkPostRequestBody(createLinkPostRequestBo "expirationDateTime": n => { createLinkPostRequestBody.expirationDateTime = n.getDateValue(); }, "message": n => { createLinkPostRequestBody.message = n.getStringValue(); }, "password": n => { createLinkPostRequestBody.password = n.getStringValue(); }, + "recipients": n => { createLinkPostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); }, "retainInheritedPermissions": n => { createLinkPostRequestBody.retainInheritedPermissions = n.getBooleanValue(); }, "scope": n => { createLinkPostRequestBody.scope = n.getStringValue(); }, + "sendNotification": n => { createLinkPostRequestBody.sendNotification = n.getBooleanValue(); }, "type": n => { createLinkPostRequestBody.type = n.getStringValue(); }, } } @@ -52,8 +62,10 @@ export function serializeCreateLinkPostRequestBody(writer: SerializationWriter, writer.writeDateValue("expirationDateTime", createLinkPostRequestBody.expirationDateTime); writer.writeStringValue("message", createLinkPostRequestBody.message); writer.writeStringValue("password", createLinkPostRequestBody.password); + writer.writeCollectionOfObjectValues("recipients", createLinkPostRequestBody.recipients, serializeDriveRecipient); writer.writeBooleanValue("retainInheritedPermissions", createLinkPostRequestBody.retainInheritedPermissions); writer.writeStringValue("scope", createLinkPostRequestBody.scope); + writer.writeBooleanValue("sendNotification", createLinkPostRequestBody.sendNotification); writer.writeStringValue("type", createLinkPostRequestBody.type); writer.writeAdditionalData(createLinkPostRequestBody.additionalData); } diff --git a/src/drives/item/items/item/workbook/names/item/range/index.ts b/src/drives/item/items/item/workbook/names/item/range/index.ts index f7de4d222fe..d72e152a8c2 100644 --- a/src/drives/item/items/item/workbook/names/item/range/index.ts +++ b/src/drives/item/items/item/workbook/names/item/range/index.ts @@ -18,10 +18,10 @@ export class RangeRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", (x, y) => new RangeRequestBuilder(x, y)); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookRange - * @see {@link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -34,7 +34,7 @@ export class RangeRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createWorkbookRangeFromDiscriminatorValue, errorMapping); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/drives/item/items/item/workbook/tables/add/index.ts b/src/drives/item/items/item/workbook/tables/add/index.ts index 63791690bba..c8aff1ba00c 100644 --- a/src/drives/item/items/item/workbook/tables/add/index.ts +++ b/src/drives/item/items/item/workbook/tables/add/index.ts @@ -46,11 +46,11 @@ export class AddRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add", (x, y) => new AddRequestBuilder(x, y)); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookTable - * @see {@link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0|Find more info here} */ public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -63,7 +63,7 @@ export class AddRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableFromDiscriminatorValue, errorMapping); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/drives/item/items/item/workbook/tables/item/columns/index.ts b/src/drives/item/items/item/workbook/tables/item/columns/index.ts index b283d74123e..3216941c397 100644 --- a/src/drives/item/items/item/workbook/tables/item/columns/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/columns/index.ts @@ -82,7 +82,7 @@ export class ColumnsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/tables/item/rows/index.ts b/src/drives/item/items/item/workbook/tables/item/rows/index.ts index 2f0b5744c12..cbc7d60fca9 100644 --- a/src/drives/item/items/item/workbook/tables/item/rows/index.ts +++ b/src/drives/item/items/item/workbook/tables/item/rows/index.ts @@ -82,7 +82,7 @@ export class RowsRequestBuilder extends BaseRequestBuilder { * Retrieve a list of tablerow objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookTableRowCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/worksheets/index.ts b/src/drives/item/items/item/workbook/worksheets/index.ts index e0960617589..faea1269a73 100644 --- a/src/drives/item/items/item/workbook/worksheets/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/index.ts @@ -81,7 +81,7 @@ export class WorksheetsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/index.ts index b1c723e92e9..0902c38a1bc 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/index.ts @@ -75,7 +75,7 @@ export class SeriesRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/index.ts b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/index.ts index 0c892eaec21..d4645d591f5 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/charts/item/series/item/points/index.ts @@ -72,10 +72,10 @@ export class PointsRequestBuilder extends BaseRequestBuilder new PointsRequestBuilder(x, y)); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookChartPointCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/chartseries-list-points?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/chartpoint-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -114,7 +114,7 @@ export class PointsRequestBuilder extends BaseRequestBuilder(requestInfo, createWorkbookChartPointFromDiscriminatorValue, errorMapping); } /** - * Retrieve a list of chartpoints objects. + * Retrieve a list of chartpoint objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts b/src/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts index 77b557de2f5..8de7da13390 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/names/item/range/index.ts @@ -18,10 +18,10 @@ export class RangeRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", (x, y) => new RangeRequestBuilder(x, y)); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookRange - * @see {@link https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -34,7 +34,7 @@ export class RangeRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createWorkbookRangeFromDiscriminatorValue, errorMapping); } /** - * Retrieve the properties and relationships of range object. + * Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/add/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/add/index.ts index d6cd1181b57..6743b937d55 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/add/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/add/index.ts @@ -46,11 +46,11 @@ export class AddRequestBuilder extends BaseRequestBuilder { super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", (x, y) => new AddRequestBuilder(x, y)); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookTable - * @see {@link https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0|Find more info here} */ public post(body: AddPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -63,7 +63,7 @@ export class AddRequestBuilder extends BaseRequestBuilder { return this.requestAdapter.sendAsync(requestInfo, createWorkbookTableFromDiscriminatorValue, errorMapping); } /** - * Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + * Use this API to create a new Table. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts index 8e0dc3bba3c..64a73f8af81 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/columns/index.ts @@ -82,7 +82,7 @@ export class ColumnsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/index.ts b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/index.ts index 1c1038bd79e..b0037d53f06 100644 --- a/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/index.ts +++ b/src/drives/item/items/item/workbook/worksheets/item/tables/item/rows/index.ts @@ -82,7 +82,7 @@ export class RowsRequestBuilder extends BaseRequestBuilder { * Retrieve a list of tablerow objects. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of WorkbookTableRowCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( diff --git a/src/drives/item/list/items/item/createLink/index.ts b/src/drives/item/list/items/item/createLink/index.ts new file mode 100644 index 00000000000..04831e3e8ec --- /dev/null +++ b/src/drives/item/list/items/item/createLink/index.ts @@ -0,0 +1,116 @@ +// tslint:disable +// eslint-disable +// Generated by Microsoft Kiota +import { createDriveRecipientFromDiscriminatorValue, createPermissionFromDiscriminatorValue, deserializeIntoPermission, serializeDriveRecipient, serializePermission, type DriveRecipient, type Permission } from '../../../../../../models/'; +import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; +import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; + +export function createCreateLinkPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) { + return deserializeIntoCreateLinkPostRequestBody; +} +export interface CreateLinkPostRequestBody extends AdditionalDataHolder, Parsable { + /** + * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + */ + additionalData?: Record; + /** + * The expirationDateTime property + */ + expirationDateTime?: Date; + /** + * The message property + */ + message?: string; + /** + * The password property + */ + password?: string; + /** + * The recipients property + */ + recipients?: DriveRecipient[]; + /** + * The retainInheritedPermissions property + */ + retainInheritedPermissions?: boolean; + /** + * The scope property + */ + scope?: string; + /** + * The sendNotification property + */ + sendNotification?: boolean; + /** + * The type property + */ + type?: string; +} +export function deserializeIntoCreateLinkPostRequestBody(createLinkPostRequestBody: CreateLinkPostRequestBody | undefined = {} as CreateLinkPostRequestBody) : Record void> { + return { + "expirationDateTime": n => { createLinkPostRequestBody.expirationDateTime = n.getDateValue(); }, + "message": n => { createLinkPostRequestBody.message = n.getStringValue(); }, + "password": n => { createLinkPostRequestBody.password = n.getStringValue(); }, + "recipients": n => { createLinkPostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); }, + "retainInheritedPermissions": n => { createLinkPostRequestBody.retainInheritedPermissions = n.getBooleanValue(); }, + "scope": n => { createLinkPostRequestBody.scope = n.getStringValue(); }, + "sendNotification": n => { createLinkPostRequestBody.sendNotification = n.getBooleanValue(); }, + "type": n => { createLinkPostRequestBody.type = n.getStringValue(); }, + } +} +export function serializeCreateLinkPostRequestBody(writer: SerializationWriter, createLinkPostRequestBody: CreateLinkPostRequestBody | undefined = {} as CreateLinkPostRequestBody) : void { + writer.writeDateValue("expirationDateTime", createLinkPostRequestBody.expirationDateTime); + writer.writeStringValue("message", createLinkPostRequestBody.message); + writer.writeStringValue("password", createLinkPostRequestBody.password); + writer.writeCollectionOfObjectValues("recipients", createLinkPostRequestBody.recipients, serializeDriveRecipient); + writer.writeBooleanValue("retainInheritedPermissions", createLinkPostRequestBody.retainInheritedPermissions); + writer.writeStringValue("scope", createLinkPostRequestBody.scope); + writer.writeBooleanValue("sendNotification", createLinkPostRequestBody.sendNotification); + writer.writeStringValue("type", createLinkPostRequestBody.type); + writer.writeAdditionalData(createLinkPostRequestBody.additionalData); +} +/** + * Provides operations to call the createLink method. + */ +export class CreateLinkRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CreateLinkRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createLink", (x, y) => new CreateLinkRequestBuilder(x, y)); + } + /** + * Invoke action createLink + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Permission + */ + public post(body: CreateLinkPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createPermissionFromDiscriminatorValue, errorMapping); + } + /** + * Invoke action createLink + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: CreateLinkPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateLinkPostRequestBody); + return requestInfo; + } +} +// tslint:enable +// eslint-enable diff --git a/src/drives/item/list/items/item/index.ts b/src/drives/item/list/items/item/index.ts index d75298f9855..4d47ff5c028 100644 --- a/src/drives/item/list/items/item/index.ts +++ b/src/drives/item/list/items/item/index.ts @@ -5,6 +5,7 @@ import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializ import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../models/oDataErrors/'; import { AnalyticsRequestBuilder } from './analytics/'; import { CreatedByUserRequestBuilder } from './createdByUser/'; +import { CreateLinkRequestBuilder } from './createLink/'; import { DocumentSetVersionsRequestBuilder } from './documentSetVersions/'; import { DriveItemRequestBuilder } from './driveItem/'; import { FieldsRequestBuilder } from './fields/'; @@ -40,6 +41,12 @@ export class ListItemItemRequestBuilder extends BaseRequestBuilder } /** * Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.education.schools.item.users.item collection - * @param educationUserId Unique identifier of the item + * @param educationUserId The unique identifier of educationUser * @returns a EducationUserItemRequestBuilder */ public byEducationUserId(educationUserId: string) : EducationUserItemRequestBuilder { diff --git a/src/education/users/item/assignments/item/categories/index.ts b/src/education/users/item/assignments/item/categories/index.ts index e081dd929e3..d786d25369d 100644 --- a/src/education/users/item/assignments/item/categories/index.ts +++ b/src/education/users/item/assignments/item/categories/index.ts @@ -67,7 +67,7 @@ export class CategoriesRequestBuilder extends BaseRequestBuilder void> { return { ...deserializeIntoBaseCollectionPaginationCountResponse(allowedCalendarSharingRolesWithUserGetResponse), - "value": n => { allowedCalendarSharingRolesWithUserGetResponse.value = n.getCollectionOfEnumValues(CalendarRoleType); }, + "value": n => { allowedCalendarSharingRolesWithUserGetResponse.value = n.getCollectionOfEnumValues(CalendarRoleTypeObject); }, } } export function serializeAllowedCalendarSharingRolesWithUserGetResponse(writer: SerializationWriter, allowedCalendarSharingRolesWithUserGetResponse: AllowedCalendarSharingRolesWithUserGetResponse | undefined = {} as AllowedCalendarSharingRolesWithUserGetResponse) : void { diff --git a/src/groups/item/calendar/calendarView/item/attachments/index.ts b/src/groups/item/calendar/calendarView/item/attachments/index.ts index c2691b9d013..104a1b9b0f4 100644 --- a/src/groups/item/calendar/calendarView/item/attachments/index.ts +++ b/src/groups/item/calendar/calendarView/item/attachments/index.ts @@ -90,11 +90,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new PostsRequestBuilder(x, y)); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of PostCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -83,7 +83,7 @@ export class PostsRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createPostCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/index.ts index edd5bc9820d..f9389f438a5 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/inReplyTo/reply/index.ts @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts b/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts index 03aa32287ad..d9a2ae4af74 100644 --- a/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts +++ b/src/groups/item/conversations/item/threads/item/posts/item/reply/index.ts @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/events/item/attachments/index.ts b/src/groups/item/events/item/attachments/index.ts index 7bc33c88f09..0343a2f72ba 100644 --- a/src/groups/item/events/item/attachments/index.ts +++ b/src/groups/item/events/item/attachments/index.ts @@ -90,11 +90,11 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder(requestInfo, createAttachmentCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + * Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of Attachment - * @see {@link https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0|Find more info here} */ public post(body: Attachment, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -118,7 +118,7 @@ export class AttachmentsRequestBuilder extends BaseRequestBuilder; + /** + * The expirationDateTime property + */ + expirationDateTime?: Date; + /** + * The message property + */ + message?: string; + /** + * The password property + */ + password?: string; + /** + * The recipients property + */ + recipients?: DriveRecipient[]; + /** + * The retainInheritedPermissions property + */ + retainInheritedPermissions?: boolean; + /** + * The scope property + */ + scope?: string; + /** + * The sendNotification property + */ + sendNotification?: boolean; + /** + * The type property + */ + type?: string; +} +export function deserializeIntoCreateLinkPostRequestBody(createLinkPostRequestBody: CreateLinkPostRequestBody | undefined = {} as CreateLinkPostRequestBody) : Record void> { + return { + "expirationDateTime": n => { createLinkPostRequestBody.expirationDateTime = n.getDateValue(); }, + "message": n => { createLinkPostRequestBody.message = n.getStringValue(); }, + "password": n => { createLinkPostRequestBody.password = n.getStringValue(); }, + "recipients": n => { createLinkPostRequestBody.recipients = n.getCollectionOfObjectValues(createDriveRecipientFromDiscriminatorValue); }, + "retainInheritedPermissions": n => { createLinkPostRequestBody.retainInheritedPermissions = n.getBooleanValue(); }, + "scope": n => { createLinkPostRequestBody.scope = n.getStringValue(); }, + "sendNotification": n => { createLinkPostRequestBody.sendNotification = n.getBooleanValue(); }, + "type": n => { createLinkPostRequestBody.type = n.getStringValue(); }, + } +} +export function serializeCreateLinkPostRequestBody(writer: SerializationWriter, createLinkPostRequestBody: CreateLinkPostRequestBody | undefined = {} as CreateLinkPostRequestBody) : void { + writer.writeDateValue("expirationDateTime", createLinkPostRequestBody.expirationDateTime); + writer.writeStringValue("message", createLinkPostRequestBody.message); + writer.writeStringValue("password", createLinkPostRequestBody.password); + writer.writeCollectionOfObjectValues("recipients", createLinkPostRequestBody.recipients, serializeDriveRecipient); + writer.writeBooleanValue("retainInheritedPermissions", createLinkPostRequestBody.retainInheritedPermissions); + writer.writeStringValue("scope", createLinkPostRequestBody.scope); + writer.writeBooleanValue("sendNotification", createLinkPostRequestBody.sendNotification); + writer.writeStringValue("type", createLinkPostRequestBody.type); + writer.writeAdditionalData(createLinkPostRequestBody.additionalData); +} +/** + * Provides operations to call the createLink method. + */ +export class CreateLinkRequestBuilder extends BaseRequestBuilder { + /** + * Instantiates a new CreateLinkRequestBuilder and sets the default values. + * @param pathParameters The raw url or the Url template parameters for the request. + * @param requestAdapter The request adapter to use to execute the requests. + */ + public constructor(pathParameters: Record | string | undefined, requestAdapter: RequestAdapter) { + super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createLink", (x, y) => new CreateLinkRequestBuilder(x, y)); + } + /** + * Invoke action createLink + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a Promise of Permission + */ + public post(body: CreateLinkPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPostRequestInformation( + body, requestConfiguration + ); + const errorMapping = { + "4XX": createODataErrorFromDiscriminatorValue, + "5XX": createODataErrorFromDiscriminatorValue, + } as Record>; + return this.requestAdapter.sendAsync(requestInfo, createPermissionFromDiscriminatorValue, errorMapping); + } + /** + * Invoke action createLink + * @param body The request body + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @returns a RequestInformation + */ + public toPostRequestInformation(body: CreateLinkPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + if(!body) throw new Error("body cannot be undefined"); + const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters); + requestInfo.configure(requestConfiguration); + requestInfo.headers.tryAdd("Accept", "application/json"); + requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeCreateLinkPostRequestBody); + return requestInfo; + } +} +// tslint:enable +// eslint-enable diff --git a/src/groups/item/sites/item/lists/item/items/item/index.ts b/src/groups/item/sites/item/lists/item/items/item/index.ts index b1c665bb652..751a5ac814b 100644 --- a/src/groups/item/sites/item/lists/item/items/item/index.ts +++ b/src/groups/item/sites/item/lists/item/items/item/index.ts @@ -5,6 +5,7 @@ import { createListItemFromDiscriminatorValue, deserializeIntoListItem, serializ import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../../../models/oDataErrors/'; import { AnalyticsRequestBuilder } from './analytics/'; import { CreatedByUserRequestBuilder } from './createdByUser/'; +import { CreateLinkRequestBuilder } from './createLink/'; import { DocumentSetVersionsRequestBuilder } from './documentSetVersions/'; import { DriveItemRequestBuilder } from './driveItem/'; import { FieldsRequestBuilder } from './fields/'; @@ -40,6 +41,12 @@ export class ListItemItemRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder { clonePostRequestBody.description = n.getStringValue(); }, "displayName": n => { clonePostRequestBody.displayName = n.getStringValue(); }, "mailNickname": n => { clonePostRequestBody.mailNickname = n.getStringValue(); }, - "partsToClone": n => { clonePostRequestBody.partsToClone = n.getCollectionOfEnumValues(ClonableTeamParts); }, - "visibility": n => { clonePostRequestBody.visibility = n.getEnumValue(TeamVisibilityType); }, + "partsToClone": n => { clonePostRequestBody.partsToClone = n.getCollectionOfEnumValues(ClonableTeamPartsObject); }, + "visibility": n => { clonePostRequestBody.visibility = n.getEnumValue(TeamVisibilityTypeObject); }, } } export function serializeClonePostRequestBody(writer: SerializationWriter, clonePostRequestBody: ClonePostRequestBody | undefined = {} as ClonePostRequestBody) : void { diff --git a/src/groups/item/team/primaryChannel/messages/item/replies/index.ts b/src/groups/item/team/primaryChannel/messages/item/replies/index.ts index 1fb689cb85e..33efd1efdeb 100644 --- a/src/groups/item/team/primaryChannel/messages/item/replies/index.ts +++ b/src/groups/item/team/primaryChannel/messages/item/replies/index.ts @@ -94,11 +94,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Send a new reply to a chatMessage in a specified channel. + * Create a new reply to a chatMessage in a specified channel. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of ChatMessage - * @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here} */ public post(body: ChatMessage, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -97,7 +97,7 @@ export class ConversationThreadItemRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new PostsRequestBuilder(x, y)); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of PostCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -83,7 +83,7 @@ export class PostsRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendAsync(requestInfo, createPostCollectionResponseFromDiscriminatorValue, errorMapping); } /** - * Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + * Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/groups/item/threads/item/posts/item/inReplyTo/reply/index.ts b/src/groups/item/threads/item/posts/item/inReplyTo/reply/index.ts index 4d166d2e59b..12006dd718f 100644 --- a/src/groups/item/threads/item/posts/item/inReplyTo/reply/index.ts +++ b/src/groups/item/threads/item/posts/item/inReplyTo/reply/index.ts @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/groups/item/threads/item/posts/item/reply/index.ts b/src/groups/item/threads/item/posts/item/reply/index.ts index 542f1a6dc27..635a9e855f7 100644 --- a/src/groups/item/threads/item/posts/item/reply/index.ts +++ b/src/groups/item/threads/item/posts/item/reply/index.ts @@ -40,10 +40,10 @@ export class ReplyRequestBuilder extends BaseRequestBuilder super(pathParameters, requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", (x, y) => new ReplyRequestBuilder(x, y)); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0|Find more info here} */ public post(body: ReplyPostRequestBody, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPostRequestInformation( @@ -56,7 +56,7 @@ export class ReplyRequestBuilder extends BaseRequestBuilder return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping); } /** - * Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + * Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/index.ts b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/index.ts index 758f19913d6..2daff8787b6 100644 --- a/src/identity/b2xUserFlows/item/userFlowIdentityProviders/index.ts +++ b/src/identity/b2xUserFlows/item/userFlowIdentityProviders/index.ts @@ -60,7 +60,7 @@ export class UserFlowIdentityProvidersRequestBuilder extends BaseRequestBuilder< } /** * Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.identity.b2xUserFlows.item.userFlowIdentityProviders.item collection - * @param identityProviderBaseId Unique identifier of the item + * @param identityProviderBaseId The unique identifier of identityProviderBase * @returns a IdentityProviderBaseItemRequestBuilder */ public byIdentityProviderBaseId(identityProviderBaseId: string) : IdentityProviderBaseItemRequestBuilder { diff --git a/src/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations/index.ts b/src/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations/index.ts index 18f466e09ba..fdbce9fd083 100644 --- a/src/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations/index.ts +++ b/src/identity/conditionalAccess/authenticationStrength/policies/item/updateAllowedCombinations/index.ts @@ -1,7 +1,7 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { AuthenticationMethodModes, createUpdateAllowedCombinationsResultFromDiscriminatorValue, deserializeIntoUpdateAllowedCombinationsResult, serializeUpdateAllowedCombinationsResult, type UpdateAllowedCombinationsResult } from '../../../../../../models/'; +import { AuthenticationMethodModes, AuthenticationMethodModesObject, createUpdateAllowedCombinationsResultFromDiscriminatorValue, deserializeIntoUpdateAllowedCombinationsResult, serializeUpdateAllowedCombinationsResult, type UpdateAllowedCombinationsResult } from '../../../../../../models/'; import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../../../models/oDataErrors/'; import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions'; @@ -10,7 +10,7 @@ export function createUpdateAllowedCombinationsPostRequestBodyFromDiscriminatorV } export function deserializeIntoUpdateAllowedCombinationsPostRequestBody(updateAllowedCombinationsPostRequestBody: UpdateAllowedCombinationsPostRequestBody | undefined = {} as UpdateAllowedCombinationsPostRequestBody) : Record void> { return { - "allowedCombinations": n => { updateAllowedCombinationsPostRequestBody.allowedCombinations = n.getCollectionOfEnumValues(AuthenticationMethodModes); }, + "allowedCombinations": n => { updateAllowedCombinationsPostRequestBody.allowedCombinations = n.getCollectionOfEnumValues(AuthenticationMethodModesObject); }, } } export function serializeUpdateAllowedCombinationsPostRequestBody(writer: SerializationWriter, updateAllowedCombinationsPostRequestBody: UpdateAllowedCombinationsPostRequestBody | undefined = {} as UpdateAllowedCombinationsPostRequestBody) : void { diff --git a/src/identity/conditionalAccess/namedLocations/item/index.ts b/src/identity/conditionalAccess/namedLocations/item/index.ts index bd48bcd303c..5229eb0f1bf 100644 --- a/src/identity/conditionalAccess/namedLocations/item/index.ts +++ b/src/identity/conditionalAccess/namedLocations/item/index.ts @@ -28,9 +28,9 @@ export class NamedLocationItemRequestBuilder extends BaseRequestBuilder new NamedLocationItemRequestBuilder(x, y)); } /** - * Delete an ipNamedLocation object. + * Delete a namedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. - * @see {@link https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0|Find more info here} */ public delete(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toDeleteRequestInformation( @@ -43,10 +43,10 @@ export class NamedLocationItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -76,7 +76,7 @@ export class NamedLocationItemRequestBuilder extends BaseRequestBuilder(requestInfo, createNamedLocationFromDiscriminatorValue, errorMapping); } /** - * Delete an ipNamedLocation object. + * Delete a namedLocation object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ @@ -87,7 +87,7 @@ export class NamedLocationItemRequestBuilder extends BaseRequestBuilder(requestInfo, createAccessReviewScheduleDefinitionFromDiscriminatorValue, errorMapping); } /** - * Update an existing accessReviewScheduleDefinition object to change one or more of its properties. + * Update the navigation property definitions in identityGovernance * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of AccessReviewScheduleDefinition - * @see {@link https://learn.microsoft.com/graph/api/accessreviewscheduledefinition-update?view=graph-rest-1.0|Find more info here} */ - public patch(body: AccessReviewScheduleDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { - const requestInfo = this.toPatchRequestInformation( + public put(body: AccessReviewScheduleDefinition, requestConfiguration?: RequestConfiguration | undefined) : Promise { + const requestInfo = this.toPutRequestInformation( body, requestConfiguration ); const errorMapping = { @@ -112,14 +111,14 @@ export class AccessReviewScheduleDefinitionItemRequestBuilder extends BaseReques return requestInfo; } /** - * Update an existing accessReviewScheduleDefinition object to change one or more of its properties. + * Update the navigation property definitions in identityGovernance * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ - public toPatchRequestInformation(body: AccessReviewScheduleDefinition, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { + public toPutRequestInformation(body: AccessReviewScheduleDefinition, requestConfiguration?: RequestConfiguration | undefined) : RequestInformation { if(!body) throw new Error("body cannot be undefined"); - const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters); + const requestInfo = new RequestInformation(HttpMethod.PUT, this.urlTemplate, this.pathParameters); requestInfo.configure(requestConfiguration); requestInfo.headers.tryAdd("Accept", "application/json"); requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeAccessReviewScheduleDefinition); diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/index.ts index e8b1788b976..94f317a4dd5 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleAccessPackages/index.ts @@ -60,7 +60,7 @@ export class IncompatibleAccessPackagesRequestBuilder extends BaseRequestBuilder } /** * Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.identityGovernance.entitlementManagement.accessPackages.item.incompatibleAccessPackages.item collection - * @param accessPackageId1 Unique identifier of the item + * @param accessPackageId1 The unique identifier of accessPackage * @returns a AccessPackageItemRequestBuilder */ public byAccessPackageId1(accessPackageId1: string) : AccessPackageItemRequestBuilder { diff --git a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/index.ts b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/index.ts index 1f1d850d6dc..0272d7c4d9b 100644 --- a/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/index.ts +++ b/src/identityGovernance/entitlementManagement/accessPackages/item/incompatibleGroups/index.ts @@ -60,7 +60,7 @@ export class IncompatibleGroupsRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -136,7 +136,7 @@ export class AccessPackageItemRequestBuilder extends BaseRequestBuilder(requestInfo, createCustomCalloutExtensionFromDiscriminatorValue, errorMapping); } /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of CustomCalloutExtension - * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0|Find more info here} */ public patch(body: CustomCalloutExtension, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -98,7 +98,7 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/index.ts b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/index.ts index e166688600d..c40150d2d97 100644 --- a/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/index.ts +++ b/src/identityGovernance/entitlementManagement/connectedOrganizations/item/externalSponsors/index.ts @@ -60,7 +60,7 @@ export class ExternalSponsorsRequestBuilder extends BaseRequestBuilder(requestInfo, createCustomCalloutExtensionFromDiscriminatorValue, errorMapping); } /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of CustomCalloutExtension - * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0|Find more info here} */ public patch(body: CustomCalloutExtension, requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toPatchRequestInformation( @@ -98,7 +98,7 @@ export class CustomCalloutExtensionItemRequestBuilder extends BaseRequestBuilder return requestInfo; } /** - * Update the properties of an accessPackageAssignmentWorkflowExtension object. + * Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation diff --git a/src/identityGovernance/termsOfUse/agreements/item/index.ts b/src/identityGovernance/termsOfUse/agreements/item/index.ts index 14cba94f559..83e9d1e49e5 100644 --- a/src/identityGovernance/termsOfUse/agreements/item/index.ts +++ b/src/identityGovernance/termsOfUse/agreements/item/index.ts @@ -64,10 +64,10 @@ export class AgreementItemRequestBuilder extends BaseRequestBuilder | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -108,7 +108,7 @@ export class AgreementItemRequestBuilder extends BaseRequestBuilder new HistoryRequestBuilder(x, y)); } /** - * Get the riskyUserHistoryItems from the history navigation property. + * Read the properties and relationships of a riskyUserHistoryItem object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a Promise of RiskyUserHistoryItemCollectionResponse - * @see {@link https://learn.microsoft.com/graph/api/riskyuser-list-history?view=graph-rest-1.0|Find more info here} + * @see {@link https://learn.microsoft.com/graph/api/riskyuser-get-riskyuserhistoryitem?view=graph-rest-1.0|Find more info here} */ public get(requestConfiguration?: RequestConfiguration | undefined) : Promise { const requestInfo = this.toGetRequestInformation( @@ -103,7 +103,7 @@ export class HistoryRequestBuilder extends BaseRequestBuilder(requestInfo, createRiskyUserHistoryItemFromDiscriminatorValue, errorMapping); } /** - * Get the riskyUserHistoryItems from the history navigation property. + * Read the properties and relationships of a riskyUserHistoryItem object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns a RequestInformation */ diff --git a/src/kiota-lock.json b/src/kiota-lock.json index 2ffc27ced74..885362ce240 100644 --- a/src/kiota-lock.json +++ b/src/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "2AE191309E6F039F7F78B8E1B78F7A4A7198834C0DFBFD25DC4CE8D4785B5CB823040D19B3597CB637268BB38B155BB79118F6BBA3E62B203BDC3669C478C072", - "descriptionLocation": "https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml", + "descriptionHash": "1A2EC9B85AF656A207E9D1A367742B384CFF56F7A0A6F76C104205ADB7ECF6E57BF9BFE9830127B3E9E44CCCB7A5C18F45B048A0477048FC3EB6C372AACAA288", + "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.9.0", + "kiotaVersion": "1.10.0", "clientClassName": "GraphBaseServiceClient", "clientNamespaceName": "github.com/microsoftgraph/msgraph-sdk-typescript/", "language": "TypeScript", @@ -31,7 +31,5 @@ "/me", "/me/**" ], - "disabledValidationRules": [ - "all" - ] + "disabledValidationRules": [] } \ No newline at end of file diff --git a/src/models/callRecords/index.ts b/src/models/callRecords/index.ts index 3a928e2994d..28fc19be7c4 100644 --- a/src/models/callRecords/index.ts +++ b/src/models/callRecords/index.ts @@ -4,31 +4,7 @@ import { createIdentitySetFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeEntity, serializeIdentitySet, type BaseCollectionPaginationCountResponse, type Entity, type IdentitySet } from '../'; import { type AdditionalDataHolder, type Duration, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export enum AudioCodec { - Unknown = "unknown", - Invalid = "invalid", - Cn = "cn", - Pcma = "pcma", - Pcmu = "pcmu", - AmrWide = "amrWide", - G722 = "g722", - G7221 = "g7221", - G7221c = "g7221c", - G729 = "g729", - MultiChannelAudio = "multiChannelAudio", - Muchv2 = "muchv2", - Opus = "opus", - Satin = "satin", - SatinFullband = "satinFullband", - RtAudio8 = "rtAudio8", - RtAudio16 = "rtAudio16", - Silk = "silk", - SilkNarrow = "silkNarrow", - SilkWide = "silkWide", - Siren = "siren", - XmsRta = "xmsRta", - UnknownFutureValue = "unknownFutureValue", -} +export type AudioCodec = (typeof AudioCodecObject)[keyof typeof AudioCodecObject]; export interface CallRecord extends Entity, Parsable { /** * UTC time when the last user left the call. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z @@ -77,25 +53,8 @@ export interface CallRecordCollectionResponse extends BaseCollectionPaginationCo */ value?: CallRecord[]; } -export enum CallType { - Unknown = "unknown", - GroupCall = "groupCall", - PeerToPeer = "peerToPeer", - UnknownFutureValue = "unknownFutureValue", -} -export enum ClientPlatform { - Unknown = "unknown", - Windows = "windows", - MacOS = "macOS", - IOS = "iOS", - Android = "android", - Web = "web", - IpPhone = "ipPhone", - RoomSystem = "roomSystem", - SurfaceHub = "surfaceHub", - HoloLens = "holoLens", - UnknownFutureValue = "unknownFutureValue", -} +export type CallType = (typeof CallTypeObject)[keyof typeof CallTypeObject]; +export type ClientPlatform = (typeof ClientPlatformObject)[keyof typeof ClientPlatformObject]; export interface ClientUserAgent extends Parsable, UserAgent { /** * The unique identifier of the Microsoft Entra application used by this endpoint. @@ -212,12 +171,12 @@ export function deserializeIntoCallRecord(callRecord: CallRecord | undefined = { "endDateTime": n => { callRecord.endDateTime = n.getDateValue(); }, "joinWebUrl": n => { callRecord.joinWebUrl = n.getStringValue(); }, "lastModifiedDateTime": n => { callRecord.lastModifiedDateTime = n.getDateValue(); }, - "modalities": n => { callRecord.modalities = n.getCollectionOfEnumValues(Modality); }, + "modalities": n => { callRecord.modalities = n.getCollectionOfEnumValues(ModalityObject); }, "organizer": n => { callRecord.organizer = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "participants": n => { callRecord.participants = n.getCollectionOfObjectValues(createIdentitySetFromDiscriminatorValue); }, "sessions": n => { callRecord.sessions = n.getCollectionOfObjectValues(createSessionFromDiscriminatorValue); }, "startDateTime": n => { callRecord.startDateTime = n.getDateValue(); }, - "type": n => { callRecord.type = n.getEnumValue(CallType); }, + "type": n => { callRecord.type = n.getEnumValue(CallTypeObject); }, "version": n => { callRecord.version = n.getNumberValue(); }, } } @@ -232,8 +191,8 @@ export function deserializeIntoClientUserAgent(clientUserAgent: ClientUserAgent ...deserializeIntoUserAgent(clientUserAgent), "azureADAppId": n => { clientUserAgent.azureADAppId = n.getStringValue(); }, "communicationServiceId": n => { clientUserAgent.communicationServiceId = n.getStringValue(); }, - "platform": n => { clientUserAgent.platform = n.getEnumValue(ClientPlatform); }, - "productFamily": n => { clientUserAgent.productFamily = n.getEnumValue(ProductFamily); }, + "platform": n => { clientUserAgent.platform = n.getEnumValue(ClientPlatformObject); }, + "productFamily": n => { clientUserAgent.productFamily = n.getEnumValue(ProductFamilyObject); }, } } export function deserializeIntoDeviceInfo(deviceInfo: DeviceInfo | undefined = {} as DeviceInfo) : Record void> { @@ -298,7 +257,7 @@ export function deserializeIntoFailureInfo(failureInfo: FailureInfo | undefined return { "@odata.type": n => { failureInfo.odataType = n.getStringValue(); }, "reason": n => { failureInfo.reason = n.getStringValue(); }, - "stage": n => { failureInfo.stage = n.getEnumValue(FailureStage); }, + "stage": n => { failureInfo.stage = n.getEnumValue(FailureStageObject); }, } } export function deserializeIntoFeedbackTokenSet(feedbackTokenSet: FeedbackTokenSet | undefined = {} as FeedbackTokenSet) : Record void> { @@ -319,7 +278,7 @@ export function deserializeIntoMedia(media: Media | undefined = {} as Media) : R } export function deserializeIntoMediaStream(mediaStream: MediaStream | undefined = {} as MediaStream) : Record void> { return { - "audioCodec": n => { mediaStream.audioCodec = n.getEnumValue(AudioCodec); }, + "audioCodec": n => { mediaStream.audioCodec = n.getEnumValue(AudioCodecObject); }, "averageAudioDegradation": n => { mediaStream.averageAudioDegradation = n.getNumberValue(); }, "averageAudioNetworkJitter": n => { mediaStream.averageAudioNetworkJitter = n.getDurationValue(); }, "averageBandwidthEstimate": n => { mediaStream.averageBandwidthEstimate = n.getNumberValue(); }, @@ -346,9 +305,9 @@ export function deserializeIntoMediaStream(mediaStream: MediaStream | undefined "postForwardErrorCorrectionPacketLossRate": n => { mediaStream.postForwardErrorCorrectionPacketLossRate = n.getNumberValue(); }, "rmsFreezeDuration": n => { mediaStream.rmsFreezeDuration = n.getDurationValue(); }, "startDateTime": n => { mediaStream.startDateTime = n.getDateValue(); }, - "streamDirection": n => { mediaStream.streamDirection = n.getEnumValue(MediaStreamDirection); }, + "streamDirection": n => { mediaStream.streamDirection = n.getEnumValue(MediaStreamDirectionObject); }, "streamId": n => { mediaStream.streamId = n.getStringValue(); }, - "videoCodec": n => { mediaStream.videoCodec = n.getEnumValue(VideoCodec); }, + "videoCodec": n => { mediaStream.videoCodec = n.getEnumValue(VideoCodecObject); }, "wasMediaBypassed": n => { mediaStream.wasMediaBypassed = n.getBooleanValue(); }, } } @@ -356,13 +315,13 @@ export function deserializeIntoNetworkInfo(networkInfo: NetworkInfo | undefined return { "bandwidthLowEventRatio": n => { networkInfo.bandwidthLowEventRatio = n.getNumberValue(); }, "basicServiceSetIdentifier": n => { networkInfo.basicServiceSetIdentifier = n.getStringValue(); }, - "connectionType": n => { networkInfo.connectionType = n.getEnumValue(NetworkConnectionType); }, + "connectionType": n => { networkInfo.connectionType = n.getEnumValue(NetworkConnectionTypeObject); }, "delayEventRatio": n => { networkInfo.delayEventRatio = n.getNumberValue(); }, "dnsSuffix": n => { networkInfo.dnsSuffix = n.getStringValue(); }, "ipAddress": n => { networkInfo.ipAddress = n.getStringValue(); }, "linkSpeed": n => { networkInfo.linkSpeed = n.getNumberValue(); }, "macAddress": n => { networkInfo.macAddress = n.getStringValue(); }, - "networkTransportProtocol": n => { networkInfo.networkTransportProtocol = n.getEnumValue(NetworkTransportProtocol); }, + "networkTransportProtocol": n => { networkInfo.networkTransportProtocol = n.getEnumValue(NetworkTransportProtocolObject); }, "@odata.type": n => { networkInfo.odataType = n.getStringValue(); }, "port": n => { networkInfo.port = n.getNumberValue(); }, "receivedQualityEventRatio": n => { networkInfo.receivedQualityEventRatio = n.getNumberValue(); }, @@ -372,12 +331,12 @@ export function deserializeIntoNetworkInfo(networkInfo: NetworkInfo | undefined "sentQualityEventRatio": n => { networkInfo.sentQualityEventRatio = n.getNumberValue(); }, "subnet": n => { networkInfo.subnet = n.getStringValue(); }, "traceRouteHops": n => { networkInfo.traceRouteHops = n.getCollectionOfObjectValues(createTraceRouteHopFromDiscriminatorValue); }, - "wifiBand": n => { networkInfo.wifiBand = n.getEnumValue(WifiBand); }, + "wifiBand": n => { networkInfo.wifiBand = n.getEnumValue(WifiBandObject); }, "wifiBatteryCharge": n => { networkInfo.wifiBatteryCharge = n.getNumberValue(); }, "wifiChannel": n => { networkInfo.wifiChannel = n.getNumberValue(); }, "wifiMicrosoftDriver": n => { networkInfo.wifiMicrosoftDriver = n.getStringValue(); }, "wifiMicrosoftDriverVersion": n => { networkInfo.wifiMicrosoftDriverVersion = n.getStringValue(); }, - "wifiRadioType": n => { networkInfo.wifiRadioType = n.getEnumValue(WifiRadioType); }, + "wifiRadioType": n => { networkInfo.wifiRadioType = n.getEnumValue(WifiRadioTypeObject); }, "wifiSignalStrength": n => { networkInfo.wifiSignalStrength = n.getNumberValue(); }, "wifiVendorDriver": n => { networkInfo.wifiVendorDriver = n.getStringValue(); }, "wifiVendorDriverVersion": n => { networkInfo.wifiVendorDriverVersion = n.getStringValue(); }, @@ -396,7 +355,7 @@ export function deserializeIntoParticipantEndpoint(participantEndpoint: Particip } export function deserializeIntoPstnCallLogRow(pstnCallLogRow: PstnCallLogRow | undefined = {} as PstnCallLogRow) : Record void> { return { - "callDurationSource": n => { pstnCallLogRow.callDurationSource = n.getEnumValue(PstnCallDurationSource); }, + "callDurationSource": n => { pstnCallLogRow.callDurationSource = n.getEnumValue(PstnCallDurationSourceObject); }, "calleeNumber": n => { pstnCallLogRow.calleeNumber = n.getStringValue(); }, "callerNumber": n => { pstnCallLogRow.callerNumber = n.getStringValue(); }, "callId": n => { pstnCallLogRow.callId = n.getStringValue(); }, @@ -447,7 +406,7 @@ export function deserializeIntoServiceEndpoint(serviceEndpoint: ServiceEndpoint export function deserializeIntoServiceUserAgent(serviceUserAgent: ServiceUserAgent | undefined = {} as ServiceUserAgent) : Record void> { return { ...deserializeIntoUserAgent(serviceUserAgent), - "role": n => { serviceUserAgent.role = n.getEnumValue(ServiceRole); }, + "role": n => { serviceUserAgent.role = n.getEnumValue(ServiceRoleObject); }, } } export function deserializeIntoSession(session: Session | undefined = {} as Session) : Record void> { @@ -458,7 +417,7 @@ export function deserializeIntoSession(session: Session | undefined = {} as Sess "endDateTime": n => { session.endDateTime = n.getDateValue(); }, "failureInfo": n => { session.failureInfo = n.getObjectValue(createFailureInfoFromDiscriminatorValue); }, "isTest": n => { session.isTest = n.getBooleanValue(); }, - "modalities": n => { session.modalities = n.getCollectionOfEnumValues(Modality); }, + "modalities": n => { session.modalities = n.getCollectionOfEnumValues(ModalityObject); }, "segments": n => { session.segments = n.getCollectionOfObjectValues(createSegmentFromDiscriminatorValue); }, "startDateTime": n => { session.startDateTime = n.getDateValue(); }, } @@ -487,7 +446,7 @@ export function deserializeIntoUserAgent(userAgent: UserAgent | undefined = {} a export function deserializeIntoUserFeedback(userFeedback: UserFeedback | undefined = {} as UserFeedback) : Record void> { return { "@odata.type": n => { userFeedback.odataType = n.getStringValue(); }, - "rating": n => { userFeedback.rating = n.getEnumValue(UserFeedbackRating); }, + "rating": n => { userFeedback.rating = n.getEnumValue(UserFeedbackRatingObject); }, "text": n => { userFeedback.text = n.getStringValue(); }, "tokens": n => { userFeedback.tokens = n.getObjectValue(createFeedbackTokenSetFromDiscriminatorValue); }, } @@ -712,12 +671,7 @@ export interface FailureInfo extends AdditionalDataHolder, Parsable { */ stage?: FailureStage; } -export enum FailureStage { - Unknown = "unknown", - CallSetup = "callSetup", - Midcall = "midcall", - UnknownFutureValue = "unknownFutureValue", -} +export type FailureStage = (typeof FailureStageObject)[keyof typeof FailureStageObject]; export interface FeedbackTokenSet extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -892,26 +846,9 @@ export interface MediaStream extends AdditionalDataHolder, Parsable { */ wasMediaBypassed?: boolean; } -export enum MediaStreamDirection { - CallerToCallee = "callerToCallee", - CalleeToCaller = "calleeToCaller", -} -export enum Modality { - Audio = "audio", - Video = "video", - VideoBasedScreenSharing = "videoBasedScreenSharing", - Data = "data", - ScreenSharing = "screenSharing", - UnknownFutureValue = "unknownFutureValue", -} -export enum NetworkConnectionType { - Unknown = "unknown", - Wired = "wired", - Wifi = "wifi", - Mobile = "mobile", - Tunnel = "tunnel", - UnknownFutureValue = "unknownFutureValue", -} +export type MediaStreamDirection = (typeof MediaStreamDirectionObject)[keyof typeof MediaStreamDirectionObject]; +export type Modality = (typeof ModalityObject)[keyof typeof ModalityObject]; +export type NetworkConnectionType = (typeof NetworkConnectionTypeObject)[keyof typeof NetworkConnectionTypeObject]; export interface NetworkInfo extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -1026,12 +963,7 @@ export interface NetworkInfo extends AdditionalDataHolder, Parsable { */ wifiVendorDriverVersion?: string; } -export enum NetworkTransportProtocol { - Unknown = "unknown", - Udp = "udp", - Tcp = "tcp", - UnknownFutureValue = "unknownFutureValue", -} +export type NetworkTransportProtocol = (typeof NetworkTransportProtocolObject)[keyof typeof NetworkTransportProtocolObject]; export interface ParticipantEndpoint extends Endpoint, Parsable { /** * CPU number of cores used by the media endpoint. @@ -1058,18 +990,8 @@ export interface ParticipantEndpoint extends Endpoint, Parsable { */ name?: string; } -export enum ProductFamily { - Unknown = "unknown", - Teams = "teams", - SkypeForBusiness = "skypeForBusiness", - Lync = "lync", - UnknownFutureValue = "unknownFutureValue", - AzureCommunicationServices = "azureCommunicationServices", -} -export enum PstnCallDurationSource { - Microsoft = "microsoft", - Operator = "operator", -} +export type ProductFamily = (typeof ProductFamilyObject)[keyof typeof ProductFamilyObject]; +export type PstnCallDurationSource = (typeof PstnCallDurationSourceObject)[keyof typeof PstnCallDurationSourceObject]; export interface PstnCallLogRow extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -1462,30 +1384,7 @@ export function serializeUserFeedback(writer: SerializationWriter, userFeedback: } export interface ServiceEndpoint extends Endpoint, Parsable { } -export enum ServiceRole { - Unknown = "unknown", - CustomBot = "customBot", - SkypeForBusinessMicrosoftTeamsGateway = "skypeForBusinessMicrosoftTeamsGateway", - SkypeForBusinessAudioVideoMcu = "skypeForBusinessAudioVideoMcu", - SkypeForBusinessApplicationSharingMcu = "skypeForBusinessApplicationSharingMcu", - SkypeForBusinessCallQueues = "skypeForBusinessCallQueues", - SkypeForBusinessAutoAttendant = "skypeForBusinessAutoAttendant", - MediationServer = "mediationServer", - MediationServerCloudConnectorEdition = "mediationServerCloudConnectorEdition", - ExchangeUnifiedMessagingService = "exchangeUnifiedMessagingService", - MediaController = "mediaController", - ConferencingAnnouncementService = "conferencingAnnouncementService", - ConferencingAttendant = "conferencingAttendant", - AudioTeleconferencerController = "audioTeleconferencerController", - SkypeForBusinessUnifiedCommunicationApplicationPlatform = "skypeForBusinessUnifiedCommunicationApplicationPlatform", - ResponseGroupServiceAnnouncementService = "responseGroupServiceAnnouncementService", - Gateway = "gateway", - SkypeTranslator = "skypeTranslator", - SkypeForBusinessAttendant = "skypeForBusinessAttendant", - ResponseGroupService = "responseGroupService", - Voicemail = "voicemail", - UnknownFutureValue = "unknownFutureValue", -} +export type ServiceRole = (typeof ServiceRoleObject)[keyof typeof ServiceRoleObject]; export interface ServiceUserAgent extends Parsable, UserAgent { /** * The role property @@ -1594,45 +1493,161 @@ export interface UserFeedback extends AdditionalDataHolder, Parsable { */ tokens?: FeedbackTokenSet; } -export enum UserFeedbackRating { - NotRated = "notRated", - Bad = "bad", - Poor = "poor", - Fair = "fair", - Good = "good", - Excellent = "excellent", - UnknownFutureValue = "unknownFutureValue", -} -export enum VideoCodec { - Unknown = "unknown", - Invalid = "invalid", - Av1 = "av1", - H263 = "h263", - H264 = "h264", - H264s = "h264s", - H264uc = "h264uc", - H265 = "h265", - Rtvc1 = "rtvc1", - RtVideo = "rtVideo", - Xrtvc1 = "xrtvc1", - UnknownFutureValue = "unknownFutureValue", -} -export enum WifiBand { - Unknown = "unknown", - Frequency24GHz = "frequency24GHz", - Frequency50GHz = "frequency50GHz", - Frequency60GHz = "frequency60GHz", - UnknownFutureValue = "unknownFutureValue", -} -export enum WifiRadioType { - Unknown = "unknown", - Wifi80211a = "wifi80211a", - Wifi80211b = "wifi80211b", - Wifi80211g = "wifi80211g", - Wifi80211n = "wifi80211n", - Wifi80211ac = "wifi80211ac", - Wifi80211ax = "wifi80211ax", - UnknownFutureValue = "unknownFutureValue", -} +export type UserFeedbackRating = (typeof UserFeedbackRatingObject)[keyof typeof UserFeedbackRatingObject]; +export type VideoCodec = (typeof VideoCodecObject)[keyof typeof VideoCodecObject]; +export type WifiBand = (typeof WifiBandObject)[keyof typeof WifiBandObject]; +export type WifiRadioType = (typeof WifiRadioTypeObject)[keyof typeof WifiRadioTypeObject]; +export const AudioCodecObject = { + Unknown: "unknown", + Invalid: "invalid", + Cn: "cn", + Pcma: "pcma", + Pcmu: "pcmu", + AmrWide: "amrWide", + G722: "g722", + G7221: "g7221", + G7221c: "g7221c", + G729: "g729", + MultiChannelAudio: "multiChannelAudio", + Muchv2: "muchv2", + Opus: "opus", + Satin: "satin", + SatinFullband: "satinFullband", + RtAudio8: "rtAudio8", + RtAudio16: "rtAudio16", + Silk: "silk", + SilkNarrow: "silkNarrow", + SilkWide: "silkWide", + Siren: "siren", + XmsRta: "xmsRta", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const CallTypeObject = { + Unknown: "unknown", + GroupCall: "groupCall", + PeerToPeer: "peerToPeer", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const ClientPlatformObject = { + Unknown: "unknown", + Windows: "windows", + MacOS: "macOS", + IOS: "iOS", + Android: "android", + Web: "web", + IpPhone: "ipPhone", + RoomSystem: "roomSystem", + SurfaceHub: "surfaceHub", + HoloLens: "holoLens", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const FailureStageObject = { + Unknown: "unknown", + CallSetup: "callSetup", + Midcall: "midcall", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const MediaStreamDirectionObject = { + CallerToCallee: "callerToCallee", + CalleeToCaller: "calleeToCaller", +} as const; +export const ModalityObject = { + Audio: "audio", + Video: "video", + VideoBasedScreenSharing: "videoBasedScreenSharing", + Data: "data", + ScreenSharing: "screenSharing", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const NetworkConnectionTypeObject = { + Unknown: "unknown", + Wired: "wired", + Wifi: "wifi", + Mobile: "mobile", + Tunnel: "tunnel", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const NetworkTransportProtocolObject = { + Unknown: "unknown", + Udp: "udp", + Tcp: "tcp", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const ProductFamilyObject = { + Unknown: "unknown", + Teams: "teams", + SkypeForBusiness: "skypeForBusiness", + Lync: "lync", + UnknownFutureValue: "unknownFutureValue", + AzureCommunicationServices: "azureCommunicationServices", +} as const; +export const PstnCallDurationSourceObject = { + Microsoft: "microsoft", + Operator: "operator", +} as const; +export const ServiceRoleObject = { + Unknown: "unknown", + CustomBot: "customBot", + SkypeForBusinessMicrosoftTeamsGateway: "skypeForBusinessMicrosoftTeamsGateway", + SkypeForBusinessAudioVideoMcu: "skypeForBusinessAudioVideoMcu", + SkypeForBusinessApplicationSharingMcu: "skypeForBusinessApplicationSharingMcu", + SkypeForBusinessCallQueues: "skypeForBusinessCallQueues", + SkypeForBusinessAutoAttendant: "skypeForBusinessAutoAttendant", + MediationServer: "mediationServer", + MediationServerCloudConnectorEdition: "mediationServerCloudConnectorEdition", + ExchangeUnifiedMessagingService: "exchangeUnifiedMessagingService", + MediaController: "mediaController", + ConferencingAnnouncementService: "conferencingAnnouncementService", + ConferencingAttendant: "conferencingAttendant", + AudioTeleconferencerController: "audioTeleconferencerController", + SkypeForBusinessUnifiedCommunicationApplicationPlatform: "skypeForBusinessUnifiedCommunicationApplicationPlatform", + ResponseGroupServiceAnnouncementService: "responseGroupServiceAnnouncementService", + Gateway: "gateway", + SkypeTranslator: "skypeTranslator", + SkypeForBusinessAttendant: "skypeForBusinessAttendant", + ResponseGroupService: "responseGroupService", + Voicemail: "voicemail", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const UserFeedbackRatingObject = { + NotRated: "notRated", + Bad: "bad", + Poor: "poor", + Fair: "fair", + Good: "good", + Excellent: "excellent", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const VideoCodecObject = { + Unknown: "unknown", + Invalid: "invalid", + Av1: "av1", + H263: "h263", + H264: "h264", + H264s: "h264s", + H264uc: "h264uc", + H265: "h265", + Rtvc1: "rtvc1", + RtVideo: "rtVideo", + Xrtvc1: "xrtvc1", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const WifiBandObject = { + Unknown: "unknown", + Frequency24GHz: "frequency24GHz", + Frequency50GHz: "frequency50GHz", + Frequency60GHz: "frequency60GHz", + UnknownFutureValue: "unknownFutureValue", +} as const; +export const WifiRadioTypeObject = { + Unknown: "unknown", + Wifi80211a: "wifi80211a", + Wifi80211b: "wifi80211b", + Wifi80211g: "wifi80211g", + Wifi80211n: "wifi80211n", + Wifi80211ac: "wifi80211ac", + Wifi80211ax: "wifi80211ax", + UnknownFutureValue: "unknownFutureValue", +} as const; // tslint:enable // eslint-enable diff --git a/src/models/externalConnectors/index.ts b/src/models/externalConnectors/index.ts index 43e6498adb0..5ac7b81b474 100644 --- a/src/models/externalConnectors/index.ts +++ b/src/models/externalConnectors/index.ts @@ -1,14 +1,10 @@ // tslint:disable // eslint-disable // Generated by Microsoft Kiota -import { BinaryOperator, createJsonFromDiscriminatorValue, createPublicErrorFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeEntity, serializeJson, serializePublicError, type BaseCollectionPaginationCountResponse, type Entity, type Json, type PublicError } from '../'; +import { BinaryOperator, BinaryOperatorObject, createJsonFromDiscriminatorValue, createPublicErrorFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeEntity, serializeJson, serializePublicError, type BaseCollectionPaginationCountResponse, type Entity, type Json, type PublicError } from '../'; import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions'; -export enum AccessType { - Grant = "grant", - Deny = "deny", - UnknownFutureValue = "unknownFutureValue", -} +export type AccessType = (typeof AccessTypeObject)[keyof typeof AccessTypeObject]; export interface Acl extends AdditionalDataHolder, Parsable { /** * The accessType property @@ -31,14 +27,7 @@ export interface Acl extends AdditionalDataHolder, Parsable { */ value?: string; } -export enum AclType { - User = "user", - Group = "group", - Everyone = "everyone", - EveryoneExceptGuests = "everyoneExceptGuests", - ExternalGroup = "externalGroup", - UnknownFutureValue = "unknownFutureValue", -} +export type AclType = (typeof AclTypeObject)[keyof typeof AclTypeObject]; export interface ActivitySettings extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. @@ -83,20 +72,8 @@ export interface ConnectionOperationCollectionResponse extends BaseCollectionPag */ value?: ConnectionOperation[]; } -export enum ConnectionOperationStatus { - Unspecified = "unspecified", - Inprogress = "inprogress", - Completed = "completed", - Failed = "failed", - UnknownFutureValue = "unknownFutureValue", -} -export enum ConnectionState { - Draft = "draft", - Ready = "ready", - Obsolete = "obsolete", - LimitExceeded = "limitExceeded", - UnknownFutureValue = "unknownFutureValue", -} +export type ConnectionOperationStatus = (typeof ConnectionOperationStatusObject)[keyof typeof ConnectionOperationStatusObject]; +export type ConnectionState = (typeof ConnectionStateObject)[keyof typeof ConnectionStateObject]; export function createAclFromDiscriminatorValue(parseNode: ParseNode | undefined) { return deserializeIntoAcl; } @@ -202,9 +179,9 @@ export function createUrlToItemResolverBaseFromDiscriminatorValue(parseNode: Par } export function deserializeIntoAcl(acl: Acl | undefined = {} as Acl) : Record void> { return { - "accessType": n => { acl.accessType = n.getEnumValue(AccessType); }, + "accessType": n => { acl.accessType = n.getEnumValue(AccessTypeObject); }, "@odata.type": n => { acl.odataType = n.getStringValue(); }, - "type": n => { acl.type = n.getEnumValue(AclType); }, + "type": n => { acl.type = n.getEnumValue(AclTypeObject); }, "value": n => { acl.value = n.getStringValue(); }, } } @@ -224,7 +201,7 @@ export function deserializeIntoConnectionOperation(connectionOperation: Connecti return { ...deserializeIntoEntity(connectionOperation), "error": n => { connectionOperation.errorEscaped = n.getObjectValue(createPublicErrorFromDiscriminatorValue); }, - "status": n => { connectionOperation.status = n.getEnumValue(ConnectionOperationStatus); }, + "status": n => { connectionOperation.status = n.getEnumValue(ConnectionOperationStatusObject); }, } } export function deserializeIntoConnectionOperationCollectionResponse(connectionOperationCollectionResponse: ConnectionOperationCollectionResponse | undefined = {} as ConnectionOperationCollectionResponse) : Record void> { @@ -253,7 +230,7 @@ export function deserializeIntoExternalActivity(externalActivity: ExternalActivi ...deserializeIntoEntity(externalActivity), "performedBy": n => { externalActivity.performedBy = n.getObjectValue(createIdentityFromDiscriminatorValue); }, "startDateTime": n => { externalActivity.startDateTime = n.getDateValue(); }, - "type": n => { externalActivity.type = n.getEnumValue(ExternalActivityType); }, + "type": n => { externalActivity.type = n.getEnumValue(ExternalActivityTypeObject); }, } } export function deserializeIntoExternalActivityCollectionResponse(externalActivityCollectionResponse: ExternalActivityCollectionResponse | undefined = {} as ExternalActivityCollectionResponse) : Record void> { @@ -281,7 +258,7 @@ export function deserializeIntoExternalConnection(externalConnection: ExternalCo "operations": n => { externalConnection.operations = n.getCollectionOfObjectValues(createConnectionOperationFromDiscriminatorValue); }, "schema": n => { externalConnection.schema = n.getObjectValue(createSchemaFromDiscriminatorValue); }, "searchSettings": n => { externalConnection.searchSettings = n.getObjectValue(createSearchSettingsFromDiscriminatorValue); }, - "state": n => { externalConnection.state = n.getEnumValue(ConnectionState); }, + "state": n => { externalConnection.state = n.getEnumValue(ConnectionStateObject); }, } } export function deserializeIntoExternalConnectionCollectionResponse(externalConnectionCollectionResponse: ExternalConnectionCollectionResponse | undefined = {} as ExternalConnectionCollectionResponse) : Record void> { @@ -322,14 +299,14 @@ export function deserializeIntoExternalItemCollectionResponse(externalItemCollec export function deserializeIntoExternalItemContent(externalItemContent: ExternalItemContent | undefined = {} as ExternalItemContent) : Record void> { return { "@odata.type": n => { externalItemContent.odataType = n.getStringValue(); }, - "type": n => { externalItemContent.type = n.getEnumValue(ExternalItemContentType); }, + "type": n => { externalItemContent.type = n.getEnumValue(ExternalItemContentTypeObject); }, "value": n => { externalItemContent.value = n.getStringValue(); }, } } export function deserializeIntoIdentity(identity: Identity | undefined = {} as Identity) : Record void> { return { ...deserializeIntoEntity(identity), - "type": n => { identity.type = n.getEnumValue(IdentityType); }, + "type": n => { identity.type = n.getEnumValue(IdentityTypeObject); }, } } export function deserializeIntoIdentityCollectionResponse(identityCollectionResponse: IdentityCollectionResponse | undefined = {} as IdentityCollectionResponse) : Record void> { @@ -357,19 +334,19 @@ export function deserializeIntoProperty(property: Property | undefined = {} as P "isRefinable": n => { property.isRefinable = n.getBooleanValue(); }, "isRetrievable": n => { property.isRetrievable = n.getBooleanValue(); }, "isSearchable": n => { property.isSearchable = n.getBooleanValue(); }, - "labels": n => { property.labels = n.getCollectionOfEnumValues